jQuery UI Widgets Forums Editors Calendar Populate other calendar

This topic contains 1 reply, has 2 voices, and was last updated by  Dimitar 10 years, 2 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • Populate other calendar #65089

    majid.empire
    Participant

    Hi ,
    I want to know is there any way to populate other calendar type , Not Gregorian

    Thanks
    Regards

    Populate other calendar #65104

    Dimitar
    Participant

    Hello majid.empire,

    Other calendar types are not supported but if the only difference between your calendar and the Gregorian calendar is a certain year offset, you can use localization and set the eras offset property to that year offset. Here is an excerpt from the German calendar localization, but with offset set:

    calendars: {
    	standard: {
    		"/": ".",
    		firstDay: 1,
    		days: {
    			names: ["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],
    			namesAbbr: ["So","Mo","Di","Mi","Do","Fr","Sa"],
    			namesShort: ["So","Mo","Di","Mi","Do","Fr","Sa"]
    		},
    		months: {
    			names: ["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember",""],
    			namesAbbr: ["Jan","Feb","Mrz","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez",""]
    		},
    		AM: null,
    		PM: null,
    		eras: [{"name":"n. Chr.","start":null,"offset":320}],
    		patterns: {
    			d: "dd.MM.yyyy",
    			D: "dddd, d. MMMM yyyy",
    			t: "HH:mm",
    			T: "HH:mm:ss",
    			f: "dddd, d. MMMM yyyy HH:mm",
    			F: "dddd, d. MMMM yyyy HH:mm:ss",
    			M: "dd MMMM",
    			Y: "MMMM yyyy"
    		}
    	}
    }

    Best Regards,
    Dimitar

    jQWidgets team
    http://www.jqwidgets.com/

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.