To convert Jalali date to Gregorian and vice versa through JavaScript, you need just to embed this JS file and use functions:

- covertPersionToGregorian([year,month,day]);

- covertGregorianToPersion([year,month,day]);

 

Try it here on JSFiddle.