+ 1

How to get date from input field?

I want to make a date input field. There will be three separate input filled like date, month, year and in return I want a full date. How I can make it with html5 and javascript

18th Jul 2018, 5:20 AM
Nayem
4 Answers
18th Jul 2018, 6:13 AM
CalviŐ˛
CalviŐ˛ - avatar
+ 2
Looks like he has a form called 'date' with 3 elements, 1 for each part of the date. He reads each element, converts the text strings to numbers and then creates a date. The date is then displayed. I didn't look for that long so may have not covered it exactly, but I think that's a general explanation.
18th Jul 2018, 12:11 PM
Duncan
Duncan - avatar
18th Jul 2018, 6:14 AM
Meet Mehta
Meet Mehta - avatar
0
CalviŐ˛ can you please explain a little bit what is happening here really.
18th Jul 2018, 7:43 AM
Nayem