Re: DateTime Format
"Sean Greer (SBI-Chico)" <[email protected]> Tue, 18 Jun 2002 13:19:44 -0700
| Newsgroups | gmane.comp.windows.devel.dotnet.general |
|---|---|
| Message-ID | <[email protected]> |
How about:
DateTime dt = DateTime.Now;
string s = dt.ToString("MMddyyhhss");
Take a look at the date and time format string section[1] in the doc.
Seang
[1]
ms-help://MS.NETFrameworkSDK/cpguidenf/html/cpcondatetimeformatstrings.htm
-----Original Message-----
From: Nischal Muthana [mailto:[email protected]]
Sent: Tuesday, June 18, 2002 1:12 PM
To: [email protected]
Subject: [DOTNET] DateTime Format
Hi All
Can someone help me with an example of getting the
current date and time into a
string format like "mmddyyhhss" -- "061802131235"
Appreciate any help.
Thanks
Nischal
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.
You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.