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 Chriss Miller 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

  • Thread starter Thread starter member 472187
  • Start date Start date
Status
Not open for further replies.
M

member 472187

Guest
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.
 
calculate the date difference for a future date and use this to display a message?
Can you be a bit more forthcoming about what you want to do? The date differnece between a future date and what? And how will you use it to determine your message?

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
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