public static bool IsDate(this object dt) { if (dt == null) return false; DateTime newDate; return DateTime.TryParse(dt.ToString(), out newDate); }