Open MiladQamari opened 11 years ago
I suggest you to duplicate an existing language file and alter it with persian texts.
there are so many differences between Gregorian calendar and Persian(Jalali) calendar , for example leap year or days of months , .... . so I added support for dynamic calendar simply by adding the localDate object to datetimepicker therefor it can work with every calendar like Arabic , Persian (Jalali), Gregorian, ....
here are files : jalali calendar convertor jalali date object fa language file bootstrap-datetimepicker (add support for local calendar)
$('input[type="persiandate"]').datetimepicker({
format: 'yyyy-mm-dd',
autoclose: true,
minView: 2,
todayBtn: true,
todayHighlight: true,
language: 'fa',
localDate: JalaliDate
});
I can't get your example working @MiladQamari @smalot Can u please review Milad's patch to see if you can add an inject-able calendar support?
Hello
can anyone help me? i can not find any converntor to jalali for datetimepicker, can you help me?
here are new address for files : jalali calendar convertor jalali date object fa language file bootstrap-datetimepicker (add support for local calendar)
hello
can i call any format of this datetimepicker? for example how to call time format or datetime format ?
thanks
hello
// time format :
this.$().datetimepicker({
format: 'hh:ii',
autoclose: true,
minView: 0,
maxView: 1,
startView: 1,
todayBtn: true,
todayHighlight: true
});
// year format
this.$().datetimepicker({
format: 'yyyy',
autoclose: true,
minView: 4,
startView: 4,
todayBtn: true,
todayHighlight: true,
language: 'fa',
localDate: JalaliDate
});
// date format
this.$().datetimepicker({
format: 'yyyy-mm-dd',
autoclose: true,
minView: 2,
todayBtn: true,
todayHighlight: true,
language: 'fa',
localDate: JalaliDate
});
dear milad bootstrap datetimepicker (add support for local ) not work please fix it
+1
I need my calendar to support Persian (jalali) . I saw someone do the same things for jquery ui date picker , here is the link http://hasheminezhad.com/datepicker