Posted By

jadedbat on 02/25/09


Tagged

php date simple


Versions (?)

Who likes this?

3 people have marked this snippet as a favorite

windmarble
umang_nine
dsntos


PHP - Date


 / Published in: PHP
 

URL: http://www.thatgrafix.com

Just a couple simple ways to echo some date stuff.

  1. <?php
  2.  
  3. // spits 02-25-2009
  4. echo date("m-d-Y");
  5.  
  6. // 04:51:57 PM Wednesday
  7. echo date("h:i:s A l");
  8.  
  9. /*
  10. m = month
  11. d = day
  12. Y = year 2009
  13.  
  14. h = hour
  15. i = minutes
  16. s = seconds
  17. A = AM/PM
  18. l = Day
  19. */
  20.  
  21. ?>

Report this snippet  

You need to login to post a comment.