mohammad50 Posted January 16, 2016 Share Posted January 16, 2016 hi at version 5 of whmcs for converting dates from Gregorian to solar(Jalali) in viewinvoice.tpl file first i add this line at top of viewinvoice.tpl file: {php}include('jdf.php');{/php} then i replace {$datecreated} by folowing line {php}echo $shamsi = jdate("Y/m/d", strtotime($this->_tpl_vars["datecreated"]));{/php} but i cant use this method at version 6 do you have any solution for this problem ? download jdf.php link —-> http://jdf.scr.ir/download/dl.php —---------------------- code to convert Gregorian to Solar(Jalali) include('jdf.php'); $Gregorian_date = "2016/01/16"; $Gregorian_date = strtotime($Gregorian_date); $solar_date = jdate("Y/m/d", $Gregorian_date); echo $solar_date; —---------------------- thank you excuse me for my poor english 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.