Create a date and time from a number of parameters in mktime()


SUBMITTED BY: henry1874w

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

FORMAT: Text only

SIZE: 154 Bytes

HITS: 214

  1. <!DOCTYPE html>
  2. <html>
  3. <body>
  4. <?php
  5. $d=mktime(11, 14, 54, 8, 12, 2014);
  6. echo "Created date is " . date("Y-m-d h:i:sa", $d);
  7. ?>
  8. </body>
  9. </html>

comments powered by Disqus