Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Weekdays from date

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
the.sq
Smarty n00b


Joined: 11 Jun 2014
Posts: 1

PostPosted: Wed Jun 11, 2014 9:06 pm    Post subject: Weekdays from date Reply with quote

Is there a way that Smarty can calculate business days (weekdays) from a input date?

An example would take a {$SubmissionDate} and calculate 3 business days after that to give an expected turnaround date from the submission.
Back to top
View user's profile Send private message
epnb
Smarty Rookie


Joined: 24 Sep 2014
Posts: 8

PostPosted: Wed Sep 24, 2014 10:24 am    Post subject: Reply with quote

The best is to invoke a PHP method that will do the job.

Smarty is best at rendering, not at functionnal performing
Here are samples :
www.smarty.net/docsv2/en/language.modifiers.tpl
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    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