42SmartBlock Hijri Date
3 years ago in Plain Text
- #42SmartBlock Hijri Date
-
- <%JA:```javascript
var hijriDate = '';
var settings = {
"url": "https://api.aladhan.com/v1/gToH?date="+dayjs().format('DD-MM-YYYY'),
"method": "GET",
"async": false,
};
$.ajax(settings).done(function (response) {
hijriDate = response.data.hijri.day + ' ' + response.data.hijri.month.en + ' ' + response.data.hijri.year + 'H'
});
return hijriDate
``` %>