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

A

ABC

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

Herfried K. Wagner [MVP]

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'.
 
L

Leon Friesema

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top