Regular expression for validating date format ddmmyyyy

Usually, I would expect it to be based on the date format that it is set in the operating system locale settings.It makes no sense to try to override it with your own preferred format, as the format it displays in is (generally speaking) the correct one for the user's locale and the format that the user is used to writing/understanding dates in.

([0-9](([2468][048]|[02468][48])|[13579][26])|([13579][26]|[02468][048]|0[0-9]|1[0-6])00))$ ^(((0[1-9]|[12][0-9]|30)[-/]? For example, my OS locale settings specify that as a short date, the first day of August this year should be 1/8-2016, but even Chrome and Opera show 01/08/2016.Other browsers, like Safari and Firefox (at least on OS X) ignore OS settings entirely and always show 2016-08-16 no matter what.^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((19|[2-9]\d)\d))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((19|[2-9]\d)\d))|((0[1-9]|1\d|2[0-8])\/02\/((19|[2-9]\d)\d))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$ Matches [29/02/2000], [30/04/2003], [01/01/2003] Non-Matches [29/02/2001], [], [1/1/1899] or check this link Script/0520__Regular-Expressions/Use Regular Good Luck google will give you 20400 results for your query q=Regular expression for validating Date format dd/MM/yyyy&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:en-US:official&client=firefox-a Hi Rameez, Checkout Patterns.aspx? “31/6/2010”, “31/06/2010” -June has 30 days only 9.


Leave a Reply