Community > Posts By > PrinceMunda

 
PrinceMunda's photo
Fri 04/22/16 03:05 AM
Is anyone from Ranchi or nearby city here? Just curious :-p

PrinceMunda's photo
Fri 04/22/16 02:38 AM
Answer is no. PHP doesnt supply any date picker. Actually it is the job of the HTML. The input fields are related to HTMl.

Again, do HTML supplies any date picker by default? Answer is, No. With HTML5, HTML is providing number input. You can compile those for data input. I.e. One field for date, on for month and another one for year.

My recommendation is to use this jquery plugin http://keith-wood.name/datepick.HTML

To validate a proper date, use javascript regex on form submit (Button click) or on Focus Lost event.