2

Hijri (Islamic) Date

I'm not sure if this has a big demand, but it would help me a lot. In AutoTools, Dialog, Date. Is it possible to have option to select different date type such as Hijri Date (Islamic) while the output will remain same options available i.e. The Gregorian date format, seconds, etc.
There are couple of sites which have references to libraries used to convert the date from Gregorian to Hijri and vise versa.

Like this https://github.com/msarhan/ummalqura-calendar
 

3 replies

AZ

Thank you in advance
I really appreciate it
Regards

AA

Try the following:

Download moment.js from: https://momentjs.com/

Download moment-hijri.js from: https://github.com/xsoh/moment-hijri

put them in the same folder, I put them inside Tasker/Scripts/

use the JavaScriptlet action as shown in the photo. The third line in the code to use offset days, you should have a variable %hijrioffset before the action. After this action, you will have 4 variables %hdate, %hijrid, %hijdriday, %hijrimonth

https://ibb.co/3mqJtw9

I have made a link for a project that I used to have for prayer times and hijri date. You can import directly to Tasker. There are actions that require other plugins, you may disable them.

https://taskernet.com/shares/?user=AS35m8lcMttXCIp2UUpjs1Dw27ZqYGKS5%2B1H%2Bycbi%2BZ4PZOOocf9hxcrJCKbXWkXhEJrR4HXKQ%3D%3D&id=Project%3APrayer+Times

JavaScript Files are here:

https://drive.google.com/drive/folders/1Gi8xhdbPfvBRahF_0S6Joz6NRrz4-zBF?usp=sharing

AA

Hi Ayman,

I have stopped using Android for more than a year, and hence stopped using Tasker. I will dig into my files and see if I can export the whole profile with the necessary files.

AA

Hi Joao,

I have achieved my goal using momentjs + moment-hijri.

I am telling this, in case you want to prioritize your development.

AZ

Hi Abdullah

Can you share some details

I'm trying to do the same.

thanks