I'm looking for a way to do some date math. I'm working on a payroll tracking system. I want to provide a list of 2 week periods for the user to select. These periods start from a hard-coded known start of pay period date. I want it to display the 6 most recent 2 week periods. For example, my known start of pay period date is '2004-03-21.'. I want to count off 2 week periods from that. So, my program should be able to give me '2004-03-21 - 2004-04-03', '2004-04-04 - 2004-04-17', '2004-04-18 - 2004-05-01', etc. Once I have my list, I can then find out which ones are the most recent and display them to the user. I also need to be able to determine if a certain date is between 2 dates. I really only need help with the date math part. Everything else I can do. Is there a module that can help me?

--
Andrew Gaffney
Network Administrator
Skyline Aeronautics, LLC.
636-357-1548


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to