public static GetCurrentCulture ( ) : |
||
return |
/// <summary> /// <para>Convert string date to datetime</para> /// <para>Return BaseDateTimeExtensions.GetCurrentDateTime() on error</para> /// </summary> /// <param name="strValue">string to convert</param> /// <returns>datetime</returns> public static DateTime TryParseDate(this string strValue) { return(strValue.TryParseDate(BaseDateTimeExtensions.GetCurrentDateTime(), BaseDateTimeExtensions.GetCurrentCulture(), BaseDateTimeExtensions.GetDefaultToDateDateTimeStyles())); }
/// <summary> /// Test if string value is a valid date value /// </summary> /// <param name="strValue">string value</param> /// <returns>true/false</returns> public static bool IsValidDate(this string strValue) { return(strValue.IsValidDate( BaseDateTimeExtensions.GetCurrentCulture(), BaseDateTimeExtensions.GetDefaultToDateDateTimeStyles())); }