Returning a Well-Formatted Date-Time

Tuesday, 6 September, 2011

⨳ 1 minute read ⨳ 30 words ⨳ apple ⨳ dates ⨳ mac ⨳ shell ⨳ tips ⨳

TLDR; a date command in the os x terminal for a nicely formatted date-time.

in OS X, entering this in a terminal window

date "+%A, %d%h%Y%t%l:%M%p"

will return something like this

Tuesday, 06Sep2011    8:40PM

Returning a Well-Formatted Date-Time - September 6, 2011 - Richard Koopmann