Another thing you can is pars one as date , another as time , concatenate it and pars as datetime, something like this
DateTime.Parse(datestring.ToShortDateString() + " " + timestring.ToShortTimeString());
| CodeGuru Home | VC++ / MFC / C++ | .NET / C# | Visual Basic | VB Forums | Developer.com |
|
Results 1 to 3 of 3
Thread: DateTime adding timeThreaded View
|
Click Here to Expand Forum to Full Width |