I have todayDate variable which data type is DateTime and string variable dateString. i convert dateString value into DateTime Data type without Time.
string stringDate = "2018-05-07"
DateTime todayDate = Convert.ToDateTime(stringDate);
when I convert stringData into DateTime, todayDate value is "5/7/2018 12:00:00 AM". I need todayDate value is "2018-05-07" format only.