Results 1 to 2 of 2
  1. #1
    Junior Member Xarzu's Avatar
    Join Date
    Jan 2008

    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"?

  2. #2
    Senior Member
    Join Date
    Apr 2005
    something like this.

    DateTime thisDate1 = new DateTime(2011, 6, 10);
    Console.WriteLine("Today is " + thisDate1.ToString("yyyy mm dd") + ".");


Similar Threads

  1. Windows Error Messages
    By cheyenne1212 in forum Miscellaneous Security Discussions
    Replies: 7
    Last Post: February 1st, 2012, 01:51 PM
  2. Amazon to offer books in digital format
    By YoungNobody in forum General Computer Discussions
    Replies: 0
    Last Post: April 11th, 2006, 02:28 AM
  3. Debate about Data Recovery after Format.
    By helloworid in forum Newbie Security Questions
    Replies: 10
    Last Post: April 30th, 2004, 08:27 PM
  4. Low Level Format
    By Death_Knight in forum Hardware
    Replies: 17
    Last Post: January 2nd, 2004, 03:00 AM
  5. buffer overflows vs. format string
    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

We have made updates to our Privacy Policy to reflect the implementation of the General Data Protection Regulation.