예제 #1
0
 public static DateTime ParseDateTimeExact(String value, String format, IFormatProvider provider, DateTimeStyles styles, out TimeSpan offset)
 {
     return(DateTimeParse.ParseExact(value, format, (DateTimeFormatInfo)provider.GetFormat(typeof(DateTimeFormatInfo)), styles, out offset));
 }
예제 #2
0
 public static DateTime2 ParseExact(string s, string format, IFormatProvider provider)
 {
     return(DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), DateTimeStyles.None));
 }
예제 #3
0
 public static DateTime2 ParseExact(string s, string format, IFormatProvider provider, DateTimeStyles style)
 {
     DateTimeFormatInfo.ValidateStyles(style, "style");
     return(DateTimeParse.ParseExact(s, format, DateTimeFormatInfo.GetInstance(provider), style));
 }
예제 #4
0
 public static DateTime ParseDateTimeExact(String value, String format, IFormatProvider provider, DateTimeStyles styles, out TimeSpan offset)
 {
     return(DateTimeParse.ParseExact(value, format, DateTimeFormatInfo.GetInstance(provider), styles, out offset));
 }