Welcome, Guest. Please login or register.
Did you miss your activation email?


Login with username, password and session length

Search

 
Advanced search

8043 Posts in 1856 Topics- by 2099 Members - Latest Member: roi
Calendar Script CommunityCustomizationHacks and Mods (Moderators: scott, DanO, Marty)calculate day before and day after
Pages: [1]   Go Down
Print
Author Topic: calculate day before and day after  (Read 363 times)
0 Members and 1 Guest are viewing this topic.
cfortune
New Member
*

Karma: 0
Offline Offline

Posts: 0

geek


WWW
« on: August 01, 2006, 11:59:00 PM »

Hello,

Is there a helper function somewhere in the calendarscript to calculate the day before or day after a given date?

what is the day before 20060801?

what is the day after 20060228?

Logged
DanO
Moderator
Full Member
*****

Karma: 13
Offline Offline

Posts: 230

Please don't PM me. Post in the open forum.


WWW
« Reply #1 on: August 02, 2006, 11:26:00 PM »

There might be, there are some defined variables to provide links to the previous/next calendar day/week/month. Check out the Documentation: Customization: Defined Variables. Those might use some sort of function to calculate the link? I've never looked into them myself.

Dan O.

------------------

Logged
cfortune
New Member
*

Karma: 0
Offline Offline

Posts: 0

geek


WWW
« Reply #2 on: August 18, 2006, 11:55:00 PM »

yes, thanks, here are the Template vars:
<% PREVIOUS DAY LINK %> , <% NEXT DAY LINK %>     The URL to navigate to the previous or next day.

Here are the class methods:
Date::getTomorrow ($year,$month,$date)
Date::getYesterday ($year,$month,$date)

------------------

Logged
Pages: [1]   Go Up
Print
Jump to: