Example #1
0
        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));
        }
Example #2
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));
        }
Example #3
0
 public static DateTime?GetDateTime2(string strName, string format)
 {
     return(FPUtils.StrToDateTime2(FPUtils.FormatDateTime(GetString(strName), format)));
 }
Example #4
0
 public static string echo(DateTime?obj, string fmstr)
 {
     return(FPUtils.FormatDateTime(obj, fmstr));
 }
Example #5
0
 public static string echo(DateTime?obj)
 {
     return(FPUtils.FormatDateTime(obj));
 }
Example #6
0
 public static string echo(string obj, string format)
 {
     return(FPUtils.FormatDateTime(obj, format));
 }