To change the date format, you can create a custom CultureInfo configuration based on the existing CultureInfo (in your case "fr-CA"), changing only the date formats. I have no experience with this, but the related article and this article explain how this is done. This is supposedly not too complicated.
I assume that setting System.Threading.Thread.CurrentThread.CurrentCulture instance of your custom CultureInfo object (for example, in the Page.Load event) should do the job.
Or use the CultureInfo class to specify culture by line:
CultureInfo culture = new CultureInfo("en-US");
Whenever you write a date on a page, use the following syntax:
myDate.ToString("d", culture);
or
string.Format( culture, "This is a string containing a date: {0:d}", myDate);
The CultureInfo class is in the System.Globalization namespace, and d in the above format is the date output format. For more information about format strings, see the "Crib" section in the .NET.NET String Quick Reference format .
bernhof
source share