Mega Code Archive

 
Categories / C# / Date Time
 

Is Date valid

using System; using System.Collections.Generic; using System.Text; public class Utils {     public static bool IsDateValid(string p)     {         try         {             DateTime d = DateTime.Parse(p);             return true;         }         catch         {             return false;         }     } }