Title |
Test
Find
Persian Date
|
Expression |
^1[34][0-9][0-9]\/((1[0-2])|([1-9]))\/(([12][0-9])|(3[01])|[1-9])$ |
Description |
a simple expression to validate Persian dates. |
Matches |
1377/12/4 1388/4/31 1390/6/14 1389/03/1 |
Non-Matches |
1290/12/2 1388/0/8 |
Author |
Rating:
paiman roointan
|
Source |
|
Your Rating |
|
Title: best persian date
Name: h.karimi
Date: 2/7/2011 7:18:37 AM
Comment:
(13|14)\d\d[/]([1-9]|0[1-9]|1[012])[/](0[1-9]|1[0-9]|2[0-9]|3[0-1]|[1-9])
Title: new persian date
Name: MAHDi YOUSEFPOUR
Date: 10/3/2010 6:40:28 AM
Comment:
^1[34][0-9][0-9]\/(0[1-9]|1[0,1,2])\/((0[1-9]|[12][0-9]|3[0,1]))$
Matches: 1389/01/01 1389/01/31
no matches: 1389/1/1 1389/1/31
Title: new persian date
Name: MAHDi YOUSEFPOUR
Date: 10/3/2010 6:39:46 AM
Comment:
^1[34][0-9][0-9]\/(0[1-9]|1[0,1,2])\/((0[1-9]|[12][0-9]|3[0,1]))$
Matches: 1389/01/01 1389/01/31
no matches: 1389/1/1 1389/1/31