JS Timestamp is calculated in milliseconds, php timestamp is calculated in seconds, so JS directly get the timestamp to be converted into time to be divided into 1000 first.
Time 2016-09-10 and 2016-9-10 conversion to timestamp is not the same as the former is 1473465600 and the latter is 1473436800, the former time stamp is converted to a time of 2016/9/10 8:0:0 the latter's timestamp converted into time for 2016/9/ 10 0:0:0 The first form of writing translates into a timestamp 8 hours more than the second. So with DatePicker's friends, note that DatePicker's display time is in the form of 2016-09-10, but in the jquery UI, DatePicker is converted to a timestamp in the form of 2016-9-10. So when you use the time stamp to make judgments, there will inevitably be errors.
Google a little bit about the meaning that China is in the East eight district, local time than the system of time more than 8 hours. Then 2016-9-10 shows the system time, and 2016-09-10 shows the local time. So the time stamp is converted to the latter eight hours more than the former. If you want to solve the problem of changing the date writing format to a time stamp. Can be written in the following format 2016-09-10 0:0:0 and 2016-9-10 0:0:0.
Short time Stamp Summary