code: public static function toJalaliStr($g_date, $curSep = '-', $newSep = '/')
  	{		
  		$arr = explode($curSep, $g_date);
  		if (count($arr) < 3 || intval($arr[2]) == 0) //invalid dates
  			return "";
  		else
  			$j_date = jDateTime::toJalali($arr[0],$arr[1],$arr[2]);
  		$j_date_rev = array($j_date[2],$j_date[1],$j_date[0]);
  		return implode($newSep,$j_date_rev);
  	}
docs: Converts Gregorian DateTime to Jalali and return it as string.
  By Ahmad Pouramini