3
Contributors
6
Replies
8
Views
6 Years
Discussion Span
Last Post by Ritesh_4
0

Yes, in html5 there is: <input type="date"> . But it's not really widely supported.

Edited by twiss: n/a

0

There's also type=datetime, if that's what you want. Support of it: http://www.quirksmode.org/html5/inputs.html. Turns out only Chrome 10+ and Opera support it. IE10 will probably support it, but it will take a long time for people to use that.
Edit; browsers don't care about the doctype for this, but using a script is better indeed.

Edited by twiss: n/a

0

am going for the javascript one in the end, seems rather simple to implement

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.