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.