PDA

View Full Version : Date Script


korvarn
07-23-2004, 09:10 AM
Hello,
I would like to make a script that automatically updates a date every 2 weeks.

For example,
Today, is July 23rd. The deadline is 2 weeks away: August 6th. Once August 6th comes along, the deadline is changed to August 20th.

Is this something that is easy to do?
I'd perfer non-cgi if possible because I think my site doesn't support it.

Thanks

Horus_Kol
07-23-2004, 09:37 AM
does your host allow PHP or ASP? (or both)

you'd need someplace to store the date - either in a database or a flat file.

then there are some date manipulations you can perform:

(ASP)
say you have a date stored in variable Date


Date = DateAdd("d", 14, Date)


this will add 14 days (2 weeks) to the date.

korvarn
07-23-2004, 02:07 PM
No my host does not support PHP or ASP, any other options?