public class CustomLanguage : CultureInfo
{
public CustomLanguage(string shortDatePattern = "yyyy-MM-dd", string longDatePattern = "yyyy-MM-dd", string shortTimePattern = "HH:mm:ss", string longTimePattern = "HH:mm:ss")
: base(InvariantCulture.LCID, true)
{
DateTimeFormat = (DateTimeFormatInfo)InstalledUICulture.DateTimeFormat.Clone();
DateTimeFormat.LongDatePattern = longDatePattern;
DateTimeFormat.ShortDatePattern = shortDatePattern;
DateTimeFormat.LongTimePattern = longTimePattern;
DateTimeFormat.ShortTimePattern = shortTimePattern;
DateTimeFormat.AMDesignator = string.Empty;
}
}