Format Characters Used By The Strftime() Function For Full Date And/Or Time

Character Description
%c        Preferred date and time representation for the current locale.
%D        Current date; equivalent to %m/%d/%y.
%p        a.m./p.m. indicator.
%R        Time in 24-hour notation.
%r        Time in 12-hour (am/pm) notation.
%T        Current time; equivalent to %H:%M:%S.
%x        Preferred date representation.
%X        Preferred time representation.
%z or %Z  Time zone.

Enjoyed this post? Share it!


Leave a comment

Your email address will not be published.