Archive for November, 2010

C# date validation

There is no direct built-in function or method to validate DateTime Data Type in C#. This following self-explanatory code snippet shows a method that takes string as argument and validates it using ParseExact Method of DateTime. Moreover, you can choose any Date Format / Style for validation. Continue reading