As you know, there is a leap every four years in the Jalali calendar (There are, of course, a few exceptions)
And instead of having 365 days a year, it has 366 days :)
And the other problem is that some months are 29 days and some months are 30 days and some months 31 :|
I use moment library for generating these dates ( of course using fa method)
This website which called تقویم is doing it very well.
var moment = require('moment-jalaali')
moment().format('jYYYY/jM/jD')
Now my question is how to identify which months are 29 and 30 and 31 and which year is leap?