Table of Contents
  • Getting Started
  • EO.Pdf
  • EO.Web
    • Overview
    • Installation & Deployement
    • EO.Web ToolTip
    • EO.Web Rating
    • EO.Web Slider & RangeSlider
    • EO.Web ListBox
    • EO.Web ComboBox
    • EO.Web Captcha
    • EO.Web ASPX To PDF
    • EO.Web Slide
    • EO.Web Flyout
    • EO.Web EditableLabel
    • EO.Web ImageZoom
    • EO.Web Floater
    • EO.Web Downloader
    • EO.Web ColorPicker
    • EO.Web HTML Editor
    • EO.Web File Explorer
    • EO.Web SpellChecker
    • EO.Web Grid
    • EO.Web MaskedEdit
    • EO.Web Splitter
    • EO.Web Menu
    • EO.Web Slide Menu
    • EO.Web TabStrip
    • EO.Web TreeView
    • EO.Web Calendar
    • EO.Web Callback
    • EO.Web MultiPage
    • EO.Web Dialog
    • EO.Web AJAXUploader
    • EO.Web ProgressBar - Free!
    • EO.Web ToolBar - Free!
  • EO.WebBrowser
  • EO.Wpf
  • Common Topics
  • Reference
Calendar Localization

Apply to

Calendar, PopupCalendar and DatePicker

Overview

By default, EO.Web Calendar uses your application/page's culture setting to format month and day names. To use this feature, simply set the culture of your application or your page.

To change the culture of your application, use culture attribute on the globalization tag in your web.config file, for example:

web.config
<globalization culture="fr-BE">
</globalization>

To set the culture of a page, use Culture attribute on the Page directive, for example:

ASPX
<%@ Page Culture="fr-BE" %>

As an alternative, you can also use these properties to localize the control: MonthNames, AbbreviatedMonthNames, DayNames, AbbreviatedDayNames.

Note EO.Web DatePicker's input format does not change based on your application/page's culture settings. The input format is specified by PickerFormat and it always has a default value of "MM/dd/yyyy" regardless of your culture setting. In order to use your own input format, you will need to modify PickerFormat property. Your can use a constant or a value based on your culture setting:

//Use a constant
DatePicker1.PickerFormat = "dd/MM/yyyy";

//Use a value based on the application's culture setting
DatePicker1.PickerFormat = System.Globalization.DateTimeFormatInfo.CurrentInfo.ShortDatePattern;