Utilities:
One can import and use these two functions to convert Gregorian date to Jalali date and vice versa.
These functions accept date object as the first argument and divider sign as the second argument ('/' is the default value).
convertToFa( dateObj, '/' )
value:
null
converted value:
""
convertToEn(dateObj, '-')
value:
null
converted value:
""