This should to the trick: http://cflib.org/udf/NextOccOfDOW
On Sun, Feb 2, 2014 at 8:10 PM, Mike K <[email protected]> wrote: > > I have a schedule function, where i need to display the date and time of > hte next occurance of an event, that is scheduled every <dayofweek> at > <time> > > for example, one event is every Saturday (day='7') at midnight. > Another event is every Sunday (day="1') at 9pm. > > How can i calculate the date of the next occurrence of these events so I > can display it as : "coming up at <time> on <date>"? > > -- > Cheers > Mike Kear > Windsor, NSW, Australia > Adobe Certified Advanced ColdFusion Developer > AFP Webworks > http://afpwebworks.com > ColdFusion Enterprise, PHP, ASP, ASP.NET hosting from AUD$15/month > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:357560 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

