The strftime format is the standard date formatting for UNIX. It's used in C, Ruby, and more.

strftime

Presets

Date

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

Time

ExampleOutput
%H:%M23:05
%I:%M %p11:05 PM

Used by Ruby, UNIX date, and many more.

Date

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

Time

SymbolExampleArea
%l1Hour
%H00..2324h Hour
%I01..1212h Hour
%M00..59Minute
%S00..60Second
%pAMAM or PM
%Z+08Time zone
%j001..366Day of the year
%%%Literal % character
0 Comments for this cheatsheet. Write yours!