<input type="date" class="pate" data-date-inline-picker="true" />
I was trying to pick the selected date of the above date picker, but I could retrieve that.
This renders this in the browser:
I also tried this:
But the above gives
it has a
value property, that is an empty string until someone correctly enters a date in there.
Thanks for replying, sir. But what should I do to get the value once the date is selected?
Any suggested reading or solution to this?
Once the date is selected and is valid (can troubleshoot using validity object property), you can use
valueAsNumber to get what you need from it.
I find that MDN is a reliable source. The following about dates should be worth investigating:
Here’s a date picker example that helps to show and expose different parts of the system.
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.