Hijri date extension

This is my first extension created on the wonderful plugin builder.

Of course, before the extensions of the local coders, it’s hard to call an extension) but this is my first extension, thanks to the help in the community

I started to understand something about it.


the extension uses the api.

{
  "code": 200,
  "status": "OK",
  "data": {
    "hijri": {
      "date": "27-26-1",
      "format": "DD-MM-YYYY",
      "day": "27",
      "weekday": {
        "en": "Al Sabt",
        "ar": "السبت"
      },
      "month": null,
      "year": "1",
      "designation": {
        "abbreviated": "AH",
        "expanded": "Anno Hegirae"
      },
      "holidays": []
    },
    "gregorian": {
      "date": "06-11-0202",
      "format": "DD-MM-YYYY",
      "day": "06",
      "weekday": {
        "en": "Saturday"
      },
      "month": {
        "number": 11,
        "en": "November"
      },
      "year": "0202",
      "designation": {
        "abbreviated": "AD",
        "expanded": "Anno Domini"
      }
    }
  }
}

the extension is simple, it would be possible to do without purple blocks, in fact these are the keys

Hijri_Calendar.aia (12.5 KB)
com.HijriCalendar.api.aix (8.7 KB)

5 Likes

Thank you for your contribution…
Great, that you are using Rapid… however I tought, Rapid reminds the user to follow the naming conventions… unfortunately it looks like this is not the case…

Please follow the naming conventions, update the extension and screenshots… thank you. .

Taifun

how to use :)?

there is an extension in the community that is much simpler and better. look for it.

hijri Date using JavaScript


code is :
let today = new Date().toLocaleDateString(‘fa-IR-u-nu-latn’);
console.log(today);


or

let options = { year: ‘numeric’, month: ‘long’, day: ‘numeric’ };
let today = new Date().toLocaleDateString(‘fa-IR’, options);
console.log(today);

TO HIJRI SAUDI
code :
let today = new Date().toLocaleDateString(‘ar-SA’); console.log(today);

only one click no more
thanks

Could send aia file for this app

Unfortunately i use free kodular and i can not create new project
it’s clear create block as above image
you need a web viewer and call javascript - when get console message done . you got local date

hi
code not working

IMPORT THIS SCREEN TO YOUR PROJECT
ONLINEDATE_Screen2.ais (2.3 KB)

IMPORTANT only one click to get date no more
for more test
click on refresh

:wink:

thanks but this is ais file not aia file

to become a programmer You should have to be persistent.
:upside_down_face:

1 Like

Great, Thank you