Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

how to show difference in two dates in smarty

 
Post new topic   Reply to topic    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
punit
Smarty n00b


Joined: 11 Sep 2017
Posts: 1

PostPosted: Mon Sep 11, 2017 7:23 am    Post subject: how to show difference in two dates in smarty Reply with quote

i create a code in php to find out the difference in two dates, but i am stuck in smarty how to show with the help of smarty
Back to top
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1085

PostPosted: Mon Sep 11, 2017 3:11 pm    Post subject: Reply with quote

That depends, how do you want to show it?
Usually, it is shown in days, you can use GMT date functions to format it suitably.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> General All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group
Protected by Anti-Spam ACP