>> >>I know that if I spent time on it, I would be able to do it, but I have >> >>A very close deadline and if anyone else has been through this I would >> >>*really* appreciate the help... >> > >> >Are you using MySQL? If so you can start with the DATE_ADD and DATE_SUB >> >functions. http://www.mysql.com/date Then RTFM http://www.php.net/date, >> >spacifically http://www.php.net/mktime. With a combination of the two >> >you can do all sorts of things. >> >> So you haven't been through this, and didn't bother to read what I said? >> Thanks! > >Perhaps you should have made it clear, something along the lines of: > >"I don't want to know how to do it for myself. I just want some ready to >use code, and I want it yesterday" Sorry, I thought that saying "I know that if I spent time on it I could do it myself, but I have a really close deadline and if anyone else has been through this I would *really* appreciate the help..." was fairly clear. Anyway, my apologies to Jay for being short and my thanks to Richard, whose code kinda worked and did save me some time. Mikey -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php