Example #1
0
 private DateTimeFormatInfo GetDateTimeFormatInfo(TextFileDataFormat df)
 {
     DateTimeFormatInfo dfi = new CultureInfo(CultureInfo.CurrentCulture.Name, false).DateTimeFormat;
     dfi.SetAllDateTimePatterns(new string[] { df.DateTimeFormat }, 'd');
     return dfi;
 }