change datetime string to datetime c# code example Example: c# string to datetime .Net str to DateTime