trend Posted June 4, 2006 Posted June 4, 2006 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! Quote
trend Posted June 4, 2006 Author Posted June 4, 2006 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) Quote
Administrators PlausiblyDamp Posted June 4, 2006 Administrators Posted June 4, 2006 If you use the built in DateTime class you could just add / subtract 7 from the given date. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.