Author Topic: Localize Date  (Read 3153 times)

mehrshid

  • Newbie
  • *
  • Posts: 2
Localize Date
« on: May 15, 2012, 09:12:49 am »
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?