I've not implemented it yet but following is a paper on conersion between persian and gregorian calendar may help you.www.astro.uni.torun.pl/.../PersianC-EMP.htm