General > Setup

Localize Date

(1/1)

mehrshid:
I am trying to localize CalemEAM in my language "Persian" and i faced a big problem and need your help.
I have to change date in all CalemEAM. I wrote tow functions to convert gregorian date to jalili(persian) date and jalili date to Gregorian in PHP :

function gregorian_to_jalali($g_y,$g_m,$g_d,$mod='')
function jalali_to_gregorian($j_y,$j_m,$j_d,$mod='')

g_y : gregorian year
g_m : gregorian month
g_d : gregorian day
...

How could i use these functions to do it?

Navigation

[0] Message Index

Go to full version