Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Format DateTime to UK format

Status
Not open for further replies.

djtom2000

Programmer
Feb 2, 2002
13
0
0
GB
Hi

I have a datetime that comes back in the following format, 5/13/2008 3:17:35 PM

I need to format it to be UK so that it is like
13/05/2008 3:17:35 PM

How can I do this using C#

Thanks

Tom
 
Also, if you're using a DateTime object, don't get all wrapped up in how the debugger shows it to you -- the internal format is still stored in a locale-independent manner. It'll be up to you to decide how to format it for the user.

Hint: look at the System.Globalization namespace.

Chip H.


____________________________________________________________________
www.chipholland.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top