This website completely moved to new platform. For latest content, visit www.programmingposts.com

Search this Site

11 Nov 2012

REGULAR EXPRESSION FOR DD/MM/YYYY FORMAT IN ASP.NET

Regular expression for dd/mm/yyyy format in asp.net

^(((((0[1-9])|(1\d)|(2[0-8]))\/((0[1-9])|(1[0-2])))|((31\/((0[13578])|(1[02])))|((29|30)\/((0[1,3-9])|(1[0-2])))))\/((20[0-9][0-9])|(19[0-9][0-9])))|((29\/02\/(19|20)(([02468][048])|([13579][26]))))$