This is a migrated thread and some comments may be shown as answers.

How to do custom culture calendar , or change actual value after change value?

1 Answer 127 Views
Date/Time Pickers
This is a migrated thread and some comments may be shown as answers.
Kiman
Top achievements
Rank 1
Kiman asked on 24 Nov 2017, 01:52 AM

Hi, my Kendo UI version is 2017.3.913, my chrome version is 62.0.3202.94 .

What I want to do is Taiwan Calendar(MSDN: https://msdn.microsoft.com/en-us/library/system.globalization.taiwancalendar(v=vs.110).aspx )

Basically just minus 1911 from common era's year, example: select 2017/11/24, show as 106/11/24.

but still need keep duration as common era, can't use common era as Taiwan calendar ,

example: if input 11/24/106 to demo's date picker , it even doesn't support year before 1900...

 

Or, how to change actual year after I input/pick date?

Like, if I input 106/11/24, maybe can change it's actual year to 2017,

so user can see Taiwan calendar year, and program also can get common era date 2017/11/24.

Also, if user pick date 2017/11/24, change visible text to 106/11/24, but keep actual date type value as 2017/11/24.

 

If datepicker can't support this situation, maybe I just hide date picker's input and do a textbox myself,

and do  text convert to date, date convert to text process or something...

1 Answer, 1 is accepted

Sort by
0
Accepted
Georgi
Telerik team
answered on 27 Nov 2017, 11:51 AM
Hello Kiman,

By default the Kendo DatePicker has min value set to 01 January 1900. Once the min value is overridden, selecting dates before 1900 is possible. For better understanding please refer to the following dojo:


Another solution is to modify the input of the user to valid UTC date within the blur event of the input:



Regards,
Georgi
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
Date/Time Pickers
Asked by
Kiman
Top achievements
Rank 1
Answers by
Georgi
Telerik team
Share this question
or