put gregorian date and get hejri date below

how it works?

converting gregorian to hijri in javascript:

javascript: g_h = (gy, gm, gd) => new Intl.DateTimeFormat('sv-SE-u-ca-islamic-umalqura').format(new Date([gy, gm, gd]))