DayPilot Lite for JavaScript 1.1 SP1

Release date: April 1, 2014 (build 1.1.130)

Locale support extended

Built-in locales:

  • ca-es
  • cs-cz
  • da-dk
  • de-at
  • de-ch
  • de-de
  • de-lu
  • en-au
  • en-ca
  • en-gb
  • en-us
  • es-es
  • es-mx
  • eu-es
  • fi-fi
  • fr-be
  • fr-ch
  • fr-fr
  • fr-lu
  • gl-es
  • it-it
  • it-ch
  • ja-jp
  • nb-no
  • nl-nl
  • nl-be
  • nn-no
  • pt-br
  • pl-pl
  • pt-pt
  • ru-ru
  • sk-sk
  • sv-se
  • zh-cn

See also:

Event Calendar Localization Example

<div id="dp"></div>

<script type="text/javascript">
  var dp = new DayPilot.Calendar("dp");
  dp.locale = "de-de";
  dp.init();
</script>

Demo:

Monthly Event Calendar Localization Example

<div id="dp"></div>

<script type="text/javascript">
  var dp = new DayPilot.Month("dp");
  dp.locale = "de-de";
  dp.init();
</script>

Demo:

DayPilot.Date.toString() Patterns

DayPilot.Date.toString() supports "ddd" (short day of week name) and "MMM" (short month name) pattern elements.

Example:

var now = new DayPilot.Date();
alert(now.toString("ddd MMM d, yyyy"));

Output:

Tu Apr 1, 2014

See also: