datetime to string c# dd/mm/yyyy code example
Example 1: c# date to string yyyy-mm-dd
var date_string = date.ToString("yyyy-MM-dd");
Example 2: c# tostring mmm dd yyyy
DateTime.Today.ToString("MMM dd, yyyy");
var date_string = date.ToString("yyyy-MM-dd");
DateTime.Today.ToString("MMM dd, yyyy");