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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to show datepicker in bhuddist year.

Thread ID:





140944 Nov 15,2018 10:07 AM UTC Nov 20,2018 05:07 AM UTC ASP.NET Web Forms 2
Tags: DatePicker
Asked On November 15, 2018 10:07 AM UTC

my aspx 

<ej:DatePicker ID="dpEndDate" runat="server" DateFormat="dd/MM/yyyy" WatermarkText="" Locale="th-TH" ></ej:DatePicker>

it work fine, but i want to show now bhuddist year(2561 , CE + 543).

How can i do. 

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On November 19, 2018 12:50 PM UTC

Hi Athiwat, 

We regret to let you that at present there is no support for "Buddhist calendar" in our DatePicker control. Currently, we are using Gregorian calendar as base calendar for all type of cultures and retrieving the 'DateTimeFormat' based on this calendar type.  

However, we have prepared a workaround sample in which we have achieved the Buddhist Calendar using EJ DatePicker. In our sample, we have globalized DatePicker to “th-TH” culture and set maxDate to 2700 to allow users to pick the date in any expected range. Also, we have converted the Gregorian date to it equivalent date in Buddhist Calendar. Please, find the workaround sample in the below attachment. 

Sample which show equivalent date in Buddhist calendar date in the input element: 

Sample which is globalized and renders with the date in the current Buddhist year: 

Please, let us know if you need any further assistance. 

Shameer Ali Baig S. 

Replied On November 20, 2018 05:07 AM UTC

Thank you, it work.


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

Live Chat Icon For mobile
Live Chat Icon