Bad Credit Loans - Bad Credit Loans - Debt Consolidation - Find jobs - Debt Consolidation

PDA

View Full Version : ASP Countdown timer


ben.r
Aug 8th 2005, 5:51 am
Hi,

I'm creating a countdown timer to a dynamic date, it reads a date from a db and then counts down to that date. I need to know once the date has been reached how i then display a message stating that the users member ship is up.............any ideas?

Thanks

vectorgraphx
Aug 8th 2005, 1:26 pm
if recordset("userexpiration") < now() then
response.write "Sorry Bucko... pay up or ship out"
else
'show the rest of the page
end if

VG

Critters
Aug 10th 2005, 8:02 am
And if you wanted a countdown, you could use the datediff(interval, dateA, dateB) command

response.write(dateDiff("d", now(), recordset("userexpiration")))

would give you the days remaining

"h" = hours, "n" = minutes

rocfather
Aug 15th 2005, 10:07 am
A great site i use for help related to programming is http://www.tek-tips.com/

They have a huge online community