Sorry, maybe your solution is better. Look this please.
http://www.w3.org/TR/html-markup/input.datetime-local.html