Format Characters Used by the strftime() Function for Full Date and/or Time : strftime « Date « PHP






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.
  
  








Related examples in the same category

1.Checking for the day of the week
2.Format Characters Used by the strftime() Function for Day
3.Format Characters Used by the strftime() Function for Formatting Characters
4.Format Characters Used by the strftime() Function for Hour
5.Format Characters Used by the strftime() Function for Minute
6.Format Characters Used by the strftime() Function for Month
7.Format Characters Used by the strftime() Function for Second
8.Format Characters Used by the strftime() Function for Week
9.Format Characters Used by the strftime() Function for Year
10.strftime.php
11.Generating the days in a month
12.Generating the days in a week
13.Finding days of the week, month, and year
14.Finding the current date and time
15.Printing a formatted date string with strftime()
16.Printing a formatted time string with other text
17.Printing a greeting or printing a form
18.Skip ahead one day to the Tuesday after the first Monday