converting string to system.datetimesetoff asp.net code example Example: c# string to datetime .Net str to DateTime