Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

RegEx

former_member194669
Active Contributor
0 Kudos

Hi,

I am usiing this RegEx for date conversion , but date coming out of this is 12.12.20


 (0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|1[01])[- /.](19|20)?[0-9]{2} 

Any info?

1 REPLY 1

former_member194669
Active Contributor
0 Kudos

Probelm is in RegEx . My RegEx was wrong

Here is correct one


 (0?[1-9]|1[012])[- /.](0?[1-9]|[12][0-9]|3[01])[- /.]((?:19|20)?[0-9]{2}) 

Issue solved