Click here to Skip to main content
12,818,508 members (35,155 online)
Click here to Skip to main content


Posted 9 Oct 2012

how to get the full date from DateTime in windows application

, 9 Oct 2012 CPOL
Hi,take a look at DateTime.ToLongDateString() and ToLongTimeStamp()DateTime d = DateTime.Now;string s = d.ToLongDateString() + " " + d.ToLongTimeString();In en-US it will result inWednesday, October 10, 2012 7:44:40 AMand in de-DE it will result in Mittwoch, 10. Oktober...



Compare Revision Minor Date Status Editor
2 - publicly available No 9-Oct-12 20:49 Available Andy411
Added culture example
1 No 9-Oct-12 20:45 Available Andy411


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Software Developer (Senior)
Germany Germany
Years ago I programmed COM-DLLs in C/C++ for some VB6 guys. It was a remote service and alarming software for refrigeration systems.

Also developed software in WinCE (C/C++) for a remote gateway to connect to the refrigeration controllers via CAN-Bus.

Since 2009 more and more C# and .Net development.

Actually developer for intra logistic software.

Currently dominated by huge spaghetti code monster :-/

You may also be interested in...

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 10 Oct 2012
Article Copyright 2012 by Andy411
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid