Create a date and time from the strtotime() function


SUBMITTED BY: henry1874w

DATE: June 17, 2017, 1:27 p.m.

FORMAT: Text only

SIZE: 157 Bytes

HITS: 301

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. $d=strtotime("10:30pm April 15 2014");
  6. echo "Created date is " . date("Y-m-d h:i:sa", $d);
  7. ?>
  8. </body>
  9. </html>

comments powered by Disqus