-
September 22nd, 2011, 04:49 AM
#1
Junior Member
How do I get a datetime format in C# that will look like this:
How do I get a datetime format in C# that will look like this:
2011-09-01 00:00:00:000
Last edited by nihil; September 22nd, 2011 at 09:02 AM.
Reason: dattime = "datetime"?
-
September 22nd, 2011, 05:25 AM
#2
something like this.
DateTime thisDate1 = new DateTime(2011, 6, 10);
Console.WriteLine("Today is " + thisDate1.ToString("yyyy mm dd") + ".");
http://msdn.microsoft.com/en-us/library/8kb3ddd4.aspx
Similar Threads
-
By cheyenne1212 in forum Miscellaneous Security Discussions
Replies: 7
Last Post: February 1st, 2012, 02:51 PM
-
By YoungNobody in forum General Computer Discussions
Replies: 0
Last Post: April 11th, 2006, 02:28 AM
-
By helloworid in forum Newbie Security Questions
Replies: 10
Last Post: April 30th, 2004, 08:27 PM
-
By Death_Knight in forum Hardware
Replies: 17
Last Post: January 2nd, 2004, 04:00 AM
-
By sunshine2002 in forum Newbie Security Questions
Replies: 0
Last Post: June 25th, 2002, 10:47 PM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|