Posted By

Tamedo on 07/09/08


Tagged


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

brent-man
jamesming


php date


 / Published in: PHP
 

URL: http://www.php-learn-it.com/php_date.html

Output

2008-07-09 2008/07/09 Jul 09, 2008 July 09, 2008 Wed Jul 09, 2008 Wednesday July 09, 2008 Wednesday July 09, 2008, 11:53:54 Wednesday July 09, 2008, 11:53 AM

  1. <?php
  2. echo date("Y-m-d");
  3. echo date("Y/m/d");
  4. echo date("M d, Y");
  5. echo date("F d, Y");
  6. echo date("D M d, Y");
  7. echo date("l F d, Y");
  8. echo date("l F d, Y, h:i:s");
  9. echo date("l F d, Y, h:i A");
  10. ?>

Report this snippet  

You need to login to post a comment.