コード例 #1
0
        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));
        }
コード例 #2
0
 public static DateTime?GetDateTime2(string strName, string format)
 {
     return(FPUtils.StrToDateTime2(FPUtils.FormatDateTime(GetString(strName), format)));
 }