c# current datetime to string hh mm ss code example Example: c# tostring mmm dd yyyy DateTime.Today.ToString("MMM dd, yyyy");