Jump to content
Xtreme .Net Talk

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


Recommended Posts

Posted

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!

Posted
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)

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...