For Programmers: Free Programming Magazines  


Home > Archive > PERL CGI Beginners > December 2004 > Calculate with Time









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Calculate with Time
ptrv

2004-12-20, 5:44 pm

Hi,

I am trying to calculate if a date (as dd-mm-yyyy) is more than 10 days away from the current date. I can get the current date as dd-mm-yyyy, but then I have to do al lot of calculations, comparing years, months and days. Difficult, especialy now at the end of the year. I do hope someone knows an easier way.
So, how can I determine if e.g. 01-01-05 is more than 10 days away from today?

Thanks in advance!

Peter
The Netherlands
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com