i need to change the format of my date string using C#
from : \"06/16/2010\"or \"16/06/2010\"
to : \"2010-06-16\"
can you please help me achieve this
The following will do.
string datestring = DateTime.Now.ToString("yyyy-MM-dd", CultureInfo.InvariantCulture);