Absolute Timestamp
问题 Hi I've just started learning about timestamp with an absolute template. In one of the examples it says $date1 = strtotime('2015-06-01'); will output Mon 08/01/2015 but I only get a number 1433113200 . What am I doing wrong. $date1 = strtotime('2015-06-01'); echo $date1; 回答1: Try like this, the number you get is the unix time stamp of your date. You need to reformat it. $date1 = date('D d/m/Y h:i:s A',strtotime('2015-06-01')); echo $date1; Here's a list of format that you can use (Source) Day