Is there any function return the short date format on the regional and Language Options under contro

  • Thread starter Thread starter ABC
  • Start date Start date
A

ABC

Is there any function return the short date format on the regional and
Language Options under control panel?
 
ABC said:
Is there any function return the short date format on the regional and
Language Options under control panel?

'System.Globalization.CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern'.
 
Is there any function return the short date format on the regional and
Language Options under control panel?

What exactly is the question? You wish to retrieve the ShortDate
format according the the regional settings?
DateTime.ToShortDateString() does that
Or do you wish to retrieve the CultureInfo:
add "System.Globalization" to your class references and querie
CultureInfo.CurrentCulture.[blabla] for that

Leon
 
Back
Top