I want use scripting app for convert gregorian calender to jalali calender.
I have a field named as ''date" for Gregorian and an empty field named as"Jalali" for result of code.
for convert I want use of this code:
let day = new Date().toLocaleDateString(‘fa-IR-u-nu-latn’);
But I don’t know how to put field names in the code!
and also I want the result, entry in jalali field.