Regex for MM/YYYY date format
-
Hi Guys, Can someone help me,i need help with Regex.I want to validate a date in this format MM/YYYY,thus 02/2009, Regards Mninawa
http://www.lmgtfy.com/?q=validate+a+date+in+this+format+MM%2FYYYY+regex[^] That will point you in the right direction!
-
http://www.lmgtfy.com/?q=validate+a+date+in+this+format+MM%2FYYYY+regex[^] That will point you in the right direction!
ooo! you're good! :)
Panic, Chaos, Destruction. My work here is done.
-
Hi Guys, Can someone help me,i need help with Regex.I want to validate a date in this format MM/YYYY,thus 02/2009, Regards Mninawa
-
ooo! you're good! :)
Panic, Chaos, Destruction. My work here is done.
Finally someone noticed my brilliance! and I put it all down to knowing google!
-
Finally someone noticed my brilliance! and I put it all down to knowing google!
hopingToCode wrote:
I put it all down to knowing Kung Foo!
fixed it:suss:
Panic, Chaos, Destruction. My work here is done.
-
Hi Guys, Can someone help me,i need help with Regex.I want to validate a date in this format MM/YYYY,thus 02/2009, Regards Mninawa
Regex: \d{2}\/\d{4} Code:
public static bool IsDate(string date)
{
return Regex.IsMatch(date, @"^(\d{2}\/\d{4})$");
} -
Hi Guys, Can someone help me,i need help with Regex.I want to validate a date in this format MM/YYYY,thus 02/2009, Regards Mninawa
-
Regex: \d{2}\/\d{4} Code:
public static bool IsDate(string date)
{
return Regex.IsMatch(date, @"^(\d{2}\/\d{4})$");
} -
Regex: \d{2}\/\d{4} Code:
public static bool IsDate(string date)
{
return Regex.IsMatch(date, @"^(\d{2}\/\d{4})$");
}From my side 5/5 :thumbsup: