×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Dylan Lopez
Added: Nov 23, 2017 10:02 AM
Views: 1
Tags: no tags
The mktime() function returns the Unix timestamp for a date. The Unix timestamp contains the number of seconds between the Unix Epoch (January 1 1970 00:00:00 GMT) and the time specified.
  1. $d=mktime(11, 14, 54, 8, 12, 2014);
  2. echo "Created date is " . date("Y-m-d h:i:sa", $d);