Happy Pappy Posted October 21, 2014 Share Posted October 21, 2014 HI, I just need to display the current data and time on a custom template page I'm working on. I've tried all the different php codes such as "echo" "print" etc but can't get it to display on a page. I am wondering if there is a trick to this with the WHMCS PHP code. Any advice would be appreciated. Thanks 0 Quote Link to comment Share on other sites More sharing options...
Kian Posted October 21, 2014 Share Posted October 21, 2014 Edit your .tpl and place this code where you want to display date/time (modify date format as you wish). {$smarty.now|date_format:'%Y-%m-%d %H:%M:%S'} Alternatively use PHP. {php}echo date('Y-m-d H:i:s');{/php} 0 Quote Link to comment Share on other sites More sharing options...
Happy Pappy Posted October 21, 2014 Author Share Posted October 21, 2014 Hey Kian, thanks so much mate. Darn, I should have worked that out as that code structure is all over the place. Thanks again mate 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.