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