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\".
Try this
DateTime.Now.ToString("MM/dd/yyyy", CultureInfo.InvariantCulture)