First you generate a DateTime object and provide the date in the constructor. Then you call the ToString on this object.
DateTime specificDate = new DateTime(2017, 4, 1);
string Date = specificDate.ToString("yyyy-MM-dd");
This provides
"2017-04-01"
in the Date variable.