Shortcuts date formats

The following table lists a summary of example format strings and their results.

Pattern Result
yyyy.MM.dd G ‘at’ HH:mm:ss zzz 1996.07.10 AD at 15:08:56 PDT

EEE, MMM d, ”yy Wed, July 10, ’96

h:mm a 12:08 PM

hh ‘o”clock’ a, zzzz 12 o’clock PM, Pacific Daylight Time

K:mm a, z 0:00 PM, PST



No comments yet. Why don’t you start the discussion?

Leave a Reply

Your email address will not be published. Required fields are marked *