thanks , its not work.
$retArray = array(
'data' => qa_html(strtr(qa_lang(($stampyear==$thisyear) ? 'main/date_format_this_year' : 'main/date_format_other_years'), array(
'1' => date((qa_lang('main/date_day_min_digits')==2) ? 'd' : 'j', $timestamp),
'2' => qa_lang('main/date_month_'.date('n', $timestamp)),
'3' => date((qa_lang('main/date_year_digits')==2) ? 'y' : 'Y', $timestamp),
))),
);
$yourstring = (String)$retArray['^day'].(String)$retArray['^month'].(String)$retArray['^year'];
i want to get each value item (month,year,day) and send it to gregorian_to_jalali('year','month','day') to convert to persian date format.