c# - .NET: Local date format from language tag/culture? -
Seeing a cultureInfo object or language tag (such as "N-US") string, there is a function that I The default date time string format (such as "mm / day / yyyy")
< P> For example:
// Display the short date format of PT-BR culture / dd / MM / yyyy CultureInfo culture = new CultureInfo ("pt-BR") ; Console.WriteLine (culture.DateTimeFormat.ShortDatePattern); // Full Date of PT-BR Culture / Time Dateline / DDDD, D'DMMMM 'D' YY H: MM: Display Using SS Console 'Prakashline (Culture, Datetime Format, Phulidate Technique);
Comments
Post a Comment