You may know there are different types of calendar! See https://en.wikipedia.org/wiki/List_of_calendarsTiddlywiki at the moment only shows time/date in tiddler subtitle as Georgian Calendar.Is there any settings / features in Tiddlywiki to show/use other Calendar system like Jalali, Hijri, ...
I am not sure if localization like Tiddlywiki language pack change this or not?
Hi Mohammad,I did find this: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl which looks interesting.
-mario
-mario
To me it looks like it does format conversion (how dates are presented), but maybe not actual data (date) conversion.
"en-GB-u-ca-islamic": use British English with the Islamic (Hijri) calendar, where the Gregorian date 14 October, 2017 is the Hijri date 24 Muharram, 1439.
function myFunction() {
const dtf = new Intl.DateTimeFormat('en-GB-u-ca-islamic', { year: 'numeric', month: 'long', day: '2-digit' })
var d = new Date("14 October, 2017");
const [{ value: mo },,{ value: da },,{ value: ye }] = dtf.formatToParts(d)
var n = dtf.formatToParts(d)
document.getElementById("demo").innerHTML = da+" "+mo+" "+ye;
}