Customizing the Time and Date


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. l, F j, Y
  2.  
  3. creates a date that look like this:
  4.  
  5. Friday, September 24, 2004
  6.  
  7. Here is what each format character in the string above represents:
  8.  
  9. * l = Full name for day of the week (lower-case L).
  10. * F = Full name for the month.
  11. * j = The day of the month.
  12. * S = The English suffix for the day of the month (e.g st, nd or th in the 1st, 2nd or 15th.)
  13. * Y = The year in 4 digits. (lower-case y gives the year's last 2 digits)
  14.  
  15. lundi 4 mars 2009 : l j F Y

URL: http://codex.wordpress.org/Formatting_Date_and_Time

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.