Bash Date Cheatsheet Link to heading

Presets Link to heading

Date

%m/%d/%Y06/05/2013
%A, %B %e, %YSunday, June 5, 2013
%b %e %aJun 5 Sun

Time

%H:%M23:05
%I:%M%p 11:05 PM

Used by Ruby, UNIX date, and many more.

Date Link to heading

%aSunWeekday
%ASunday
%w0..6 (Sunday is 0)
%y13Year
%Y2013
%bJanMonth
%BJanuary
%m01..12
%d01..31Day
%e1..31

Time Link to heading

%l1Hour
%H00..2324h Hour
%I01..1212h Hour
%M00..59Minute
%S00..60Second
%pAMAM or PM
%Z+08Time zone
%j001..366Day of the year
%%%Literal % character