Mega Code Archive

 
Categories / Php / Date Time
 

Format Characters Used by the strftime() Function for Full Date andor 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.