Esempio n. 1
0
 /// <summary>
 /// ///  Initializes a new instance of the String To Date Translator
 /// </summary>
 public StringToDateTranslator() : this(CultureInfo.CurrentCulture.Name)
 {
     // Add the default culture
     StringToDateTranslator.CreateDateFormatsForCulture("en-US");
 }
Esempio n. 2
0
 /// <summary>
 ///  Initializes a new instance of the String To Date Translator
 /// </summary>
 /// <param name="culture">The code representing the culture</param>
 public StringToDateTranslator(string culture)
 {
     // Initialize the Culture Formats if not initialized yet
     StringToDateTranslator.CreateDateFormatsForCulture(culture);
     Culture = new CultureInfo(culture);
 }