Search code examples
htmldateinputxhtmlhtml4

How do I input date in forms with xhtml or html4?


well I know it's easier on html5, but I have to use html4 or xhtml and I can't find any info without html5 somehow. Can anyone help and explain me how I can input a date?

<input type="text" name ="sometext">

The normal html4 or xhtml doesn't seem to have the type date as the type of input.

Thanks in advance.


Solution

  • HTML4 doesn't have any tags to input date by default.All you need to do is include third party library like JQUERY.

    Checkout this example http://jqueryui.com/datepicker/