string to date

This is a discussion on string to date within the C# Programming forums, part of the General Programming Boards category; i'm looking for a method that will allow me to convert a string to a date. can anyone point me ...

  1. #1
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589

    string to date

    i'm looking for a method that will allow me to convert a string to a date.
    can anyone point me into the direction of the answer.
    thank you.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

  2. #2
    and the Hat of Clumsiness GanglyLamb's Avatar
    Join Date
    Oct 2002
    Location
    between photons and phonons
    Posts
    1,109
    .NET is quite straightforward:

    Anyway: http://msdn2.microsoft.com/en-us/lib...e_methods.aspx

    And specifically: http://msdn2.microsoft.com/en-us/lib....tryparse.aspx

    I wish i could give you a small example, but I'm currently on a pc without vs and I dont like giving out code that im not sure that will work. There might be some examples though on the links I gave you.

  3. #3
    essence of digital xddxogm3's Avatar
    Join Date
    Sep 2003
    Posts
    589
    thanks for the pointers.
    i'm pretty your information fixed it.
    i will post back if i have any other issues.
    Last edited by xddxogm3; 01-22-2008 at 07:46 PM.
    "Hence to fight and conquer in all your battles is not supreme excellence;
    supreme excellence consists in breaking the enemy's resistance without fighting."
    Art of War Sun Tzu

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Please check my C++
    By csonx_p in forum C++ Programming
    Replies: 263
    Last Post: 07-24-2008, 10:20 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. Calculator + LinkedList
    By maro009 in forum C++ Programming
    Replies: 20
    Last Post: 05-17-2005, 01:56 PM
  4. Adding to a string date
    By knutso in forum C Programming
    Replies: 11
    Last Post: 01-20-2004, 11:18 AM
  5. creating class, and linking files
    By JCK in forum C++ Programming
    Replies: 12
    Last Post: 12-08-2002, 02:45 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21