I have the following code
DateTime.Now.ToString(\"MM/dd/yyyy\")
It always gives me this output : \"04.13.2011\" instead of \"04/13/2011\".
Use following code:
DateTime.Now.ToString("MM/dd/yyyy", System.Globalization.CultureInfo.InvariantCulture)
This ensures that the underlying date and time values do not change when the data is read or written by users from different cultures.