Ejemplo n.º 1
0
 public static System.DateTime ObjectToDateTime(object o, System.DateTime defaultValue)
 {
     if (o != null)
     {
         return(TypeUtil.StringToDateTime(o.ToString(), defaultValue));
     }
     return(defaultValue);
 }
Ejemplo n.º 2
0
 public static System.DateTime StringToDateTime(string s)
 {
     return(TypeUtil.StringToDateTime(s, System.DateTime.Now));
 }