/// <summary> /// 设置时间 /// </summary> /// <param name="dateTime">时间</param> public static void SetTime(string dateTime) { _dateTime = Conv.ToDateOrNull(dateTime); }
/// <summary> /// 转换为可空日期 /// </summary> /// <param name="obj">数据</param> public static DateTime?ToDateOrNull(this string obj) { return(Conv.ToDateOrNull(obj)); }
/// <summary> /// 转换为可空日期 /// </summary> /// <param name="data">数据</param> public static DateTime?ToDateOrNull(this string data) { return(Conv.ToDateOrNull(data)); }