Retrieving the System date and time settings

T

Tull Clancey

Hi all.

I'm having real trouble finding a simple solution for getting the system
date and time settings.

All I want to retrieve is the system short date format, is it dd/mm/yyyy or
mm/dd/yyyy or yyyy/mm/dd. I can find many articles talking about changing
date formats, but nothing for actually getting the setting.

Anything would be gratefully received! (VB.Net 2003/2005)

Cheers,
Tull.
 
T

Theo Verweij

The ease of VB:
just use: My.Application.Culture.DateTimeFormat

You'll have all you need (and a lot more!)
 

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