The locale/culture determines first day of week, month names, day of week names, time and date format and other properties.

Adjusting individual properties

Individual aspects of the locale can be adjusted separately using the following properties:

JavaScript

The default "locale" property value is "en-us". You can use one of the predefined locale IDs:

dp.locale = "de-de";

You can also define and register your own locale. Then simply use the locale ID as "locale" value.

See also 

Example:

dp.locale = "de-de";
dp.update();

ASP.NET WebForms

DayPilot will adjust its appearance automatically depending on the Culture set for the current thread.

The Culture can be set at one of the following places:

1. In web.config, configuration/system.web/globalization element, culture attribute.

<configuration>
    <system.web>
        <globalization culture="en-US"/>
    </system.web>
</configuration>

2. In aspx page header:

<%@ Page Culture="en-US" %>

3. In the code behind:

 protected void Page_Load(object sender, EventArgs e)
 {
    Culture = new CultureInfo("da-DK");
 }

ASP.NET MVC

DayPilot will adjust its appearance automatically depending on the Culture set for the current thread.

The Culture can be set at one of the following places:

1. In web.config, configuration/system.web/globalization element, culture attribute.

<configuration>
    <system.web>
        <globalization culture="en-US"/>
    </system.web>
</configuration>

2. Use Application_BeginRequest in Global.asax.cs

protected void Application_BeginRequest(Object sender, EventArgs e)
{
  Thread.CurrentThread.CurrentCulture = new CultureInfo("en-us");
}