We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

More format of Date

Thread ID:





117144 Aug 21,2014 09:14 AM UTC Aug 22,2014 12:37 PM UTC JavaScript 1
Tags: ejDatePicker
Asked On August 21, 2014 09:14 AM UTC

ejDatePicker how to add more format localization 
etc. Thai , Spain

best Regards

Sasikala Nagarajan [Syncfusion]
Replied On August 22, 2014 12:37 PM UTC

 Hi Chatchai,

Thanks for using Syncfusion products.

We are having a property called "Locale" which accepts the string value and it is used to display the DatePicker with different culture format. If we want to use any cultures we have to add the script files of those corresponding culture in the sample. In order to add Spain Culture in the DatePicker we have to refer a Spain culture's s​cript file named "globalize.culture.es-ES.js".

 The below code depicts how to specify the culture in using "locale" property of the DatePicker control,​


$(function () {

        // declaration


            locale: "es-ES",




For your convenient, we have prepared a sample in DatePicker which uses Spain culture and it can be downloaded from the following location:


Globalize.js is a simple JavaScript library that allows you to format and parse numbers and dates in culture specific fashion. The globalize cultures is the open source and we can get all the cultures file from online, please refer the below online link,


 You can get the script file of various cultures from the following path also:


 Please let us know if you need any further assistance.


Sasikala Nagarajan


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon