The front-end post data is processed in the background as follows. How to compare it with the time field of the database.
The data from the front-end post is as follows:
How to process it in the background. How to compare it with the time field of the database.
Reply content:
The data from the front-end post is as follows:
How to process it in the background. How to compare it with the time field of the database.
Do you think so? Hope to help you
$ Str = "Tue Mar 22 2016 15:07:48 GMT + 0800 (China Standard Time)"; $ arr = explode ("GMT + 0800", $ str ); $ time = strtotime ($ arr [0]); echo date ("Y-m-d H: I: s", $ time );
The representation of html5 input type = month isYYYY-MMAre you sure the format here is month?
Https://www.w3.org/TR/html-markup/input.month.html
Http://www.w3schools.com/html/tryit.asp? Filename = tryhtml_input_month