示例#1
0
 /// <summary>
 /// 将输入的字符串int型转换为DateTime字符串类型
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public static string StrIntToStrDateTime(string input)
 {
     return(StrIntToDateTime(DataConversion.StrToInt(input, 0)).ToString("yyyy-MM-dd HH:mm:ss"));
 }
示例#2
0
 /// <summary>
 /// 将输入的int型字符串转换为DateTime类型
 /// </summary>
 /// <param name="input"></param>
 /// <returns></returns>
 public static DateTime StrIntToDateTime(string input)
 {
     return(IntToDateTime(DataConversion.StrToInt(input, 0)));
 }