How to find next friday date and previous Friday's Date given a date?

trend

Centurion
Joined
Oct 12, 2004
Messages
171
I have a program that will give me a random date.. example: 5/1/2006 or 2/3/2003.. or whatever.. and I need to find the previous and next's friday's Date.

I guess the big problem is month endings.. 29days, 30days.. 31days??

I am afraid all I know how to do right now is split(date,"/") to give me the day, month, year values..

Where do I go from here?

thanks!
 
Actually.. The date I am given should be on a friday... SO I just need to find out what the next friday's date is (here again problem is dealing with different month lengths)
 
Back
Top