Find Jobs
Hire Freelancers

Easy If sentence to change Date Format in Smarty Template for WHMCS

$10-30 USD

已完成
已发布超过 7 年前

$10-30 USD

货到付款
Hello I am using WHMCS as a billing system, which uses Smarty templates to show client area pages. WHMCS does not provide a way to format the dates according to client country, so I need to find a way to do that, modifying the client area template files. I already found a way to do it, adding this if sentence inside the template files: {if $[login to view URL] eq "Argentina"} {$datedue|date_format:"%d/%m/%y"} {elseif $[login to view URL] eq "United States"} {$datedue|date_format:"%m/%d/%y"} {else} {$datedue|date_format:"%m/%d/%y"} {/if} But as $datedue is just one of several possible variables for dates, I need to find a way in which I could set just the date format modifier inside the if sentence, and then apply that modifier to each date variable. Something like this: {if $[login to view URL] eq "Argentina"} $datelocalformat = "%d/%m/%y" {elseif $[login to view URL] eq "United States"} $datelocalformat = "%m/%d/%y" {else} $datelocalformat = "%m/%d/%y" {/if} {$datedue|date_format:"$datelocalformat"} So basically I need to know what expressions should I use instead of $datelocalformat = "%m/%d/%y" inside the if statement, and then what to use instead of {$datedue|date_format:"$datelocalformat"}.
项目 ID: 12151595

关于此项目

4提案
远程项目
活跃7 年前

想赚点钱吗?

在Freelancer上竞价的好处

设定您的预算和时间范围
为您的工作获得报酬
简要概述您的提案
免费注册和竞标工作
颁发给:
用户头像
FrontEnd Developer -Programming languages and technologies HTML /HTML5, CSS 3, PHP, Bootstrap, Joomla/Joomla-Viruemart(medium knowledge), SEO(Bing,Google-Webmaster Tools) , Prestashop , JavaScript, AJAX , Smarty(basic knowledge), jQuery UI(basic knowledge). -Database engines MySQL, MS SQL
$13 USD 在1天之内
0.0 (0条评论)
0.0
0.0
4威客以平均价$22 USD来参与此工作竞价
用户头像
I'm using smarty from 2011:)
$20 USD 在1天之内
0.0 (0条评论)
0.0
0.0
用户头像
Dear Client, Greeting of the day ahead !!! Thanks for providing us opportunity to place bid over the project and communicate with you. I am a serious bidder here and i have already worked on a similar project before and can deliver as u have mentioned .I have checked your requirements.i have right skills to work on this assignmentWe find our expertise, skills and capabilities are perfectly blends with your project requirements because we have already worked on many projects. You'll love the whole layout, interface design , cross-browser compatibility and mobile-device-friendly interfaces that we design Our team has created over dozen of windows, and web based appliations iPhone/iPad games and apps, and over 10 Windows and Linux server APIs and security tools Don't waste any more time in your development We take care of all these things for you . Advanced custom coding for our clients. Anytime. can u provide your email or sky-pe etc for further discussion about the project. plz add me to discus I am ready to discuss with you Looking forward to hear from you. with best Regards
$23 USD 在6天之内
0.0 (0条评论)
0.0
0.0

关于客户

ARGENTINA的国旗
Buenos Aires, Argentina
5.0
8
付款方式已验证
会员自12月 12, 2012起

客户认证

谢谢!我们已通过电子邮件向您发送了索取免费积分的链接。
发送电子邮件时出现问题。请再试一次。
已注册用户 发布工作总数
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
加载预览
授予地理位置权限。
您的登录会话已过期而且您已经登出,请再次登录。