Archives for: April 2008, 18

04/18/08

  04:04:52 pm, by Nimble   , 266 words  
Categories: Thoughts, Programming

String To Time In C#

If you are trying to get a time into a DateTime from a string, it's relatively easy: DateTime dt = DateTime.Parse(inputText,CultureInfo.CurrentCulture, DateTimeStyles.NoCurrentDateDefault); The NoCurrentDateDefault is pretty important. Otherwise,… more »