Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ssi date difference

Status
Not open for further replies.

prrm333

Programmer
Apr 14, 2003
97
0
0
US
Is there a way to use SSI only (not cgi) to calculate the date difference for a future date and use this to display a message?
 
No I've done something with a countdown script. I was thinking more in the line of simple SSI if/then logic.
 
Using if/then logic in SSI I was planning to do something like the following:

Set current date to variable.
Set future date needed to variable.
If date difference > 1
display "Number of days to go is: " & date difference
Else if date difference = 1
display "Tomorrow is the day"
Else if date difference = 0
display "Today is the day"
Else
display "It is passed the due date..."

Does this help you? Thanks.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top