Samples

 

Basic Date Picker : Globalization

Example

1. Select a Date:

2. Select a Culture:

 
 

Current Thread Culture:

English (United States)

Browser Culture:
English (United States)

Remarks

Basic Date Picker follows the same convention as all ASP.NET controls and by default the Culture is gleaned automatically from the Current Thread. This sample demonstrates requesting the UserLanguage from the browser and modifying the System.Threading.Thread.CurrentThread.CurrentCulture object.

The DateFormat in this example has been set to ShortDate ("d"). The ShortDate format will render as per the System.Globalization.DateTimeFormatInfo.ShortDatePattern within the .NET Framework. The ShortDate format is different for each Culture.

Download Basic Date Picker Trial

The date picker controls will automatically pick up the current Thread's Culture. The controls will auto localize.

See Also

Culture | DateFormat