public static DateTime GetDateTime(string strName) { string @string = GetString(strName); @string = ((strName.ToLower() == "startdate") ? FPUtils.FormatDateTime(@string, "yyyy-MM-dd 00:00:00") : ((!(strName.ToLower() == "enddate")) ? FPUtils.FormatDateTime(@string) : FPUtils.FormatDateTime(@string, "yyyy-MM-dd 23:59:59"))); return(FPUtils.StrToDateTime(@string)); }
public static DateTime?GetDateTime2(string strName) { string @string = GetString(strName); if (string.IsNullOrEmpty(@string)) { return(null); } @string = ((strName.ToLower() == "startdate") ? FPUtils.FormatDateTime(@string, "yyyy-MM-dd 00:00:00") : ((!(strName.ToLower() == "enddate")) ? FPUtils.FormatDateTime(@string) : FPUtils.FormatDateTime(@string, "yyyy-MM-dd 23:59:59"))); return(FPUtils.StrToDateTime2(@string)); }
public static DateTime?GetDateTime2(string strName, string format) { return(FPUtils.StrToDateTime2(FPUtils.FormatDateTime(GetString(strName), format))); }
public static string echo(DateTime?obj, string fmstr) { return(FPUtils.FormatDateTime(obj, fmstr)); }
public static string echo(DateTime?obj) { return(FPUtils.FormatDateTime(obj)); }
public static string echo(string obj, string format) { return(FPUtils.FormatDateTime(obj, format)); }