how to convert a simple date value into datetime in c# code example Example: c# string to datetime .Net str to DateTime