Tuesday, May 01, 2007

C# : Creating dates

The simplest way is to use:


string thisDate = "1990-01-01";
DateTime datetime = DateTime.Parse (thisDate);


Enjoy!

No comments: