/ Published in: C#
URL: http://social.msdn.microsoft.com/forums/en-US/netfxbcl/thread/dc9ba956-6370-424a-95f5-1b4539c64a66
Here is my function to check if a string is a date in C#.
Expand |
Embed | Plain Text
public bool IsDate(string value) { DateTime date; return DateTime.TryParse(value, out date); }
You need to login to post a comment.
