How does the html5-php process data whose form type is month?

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.