Jump to content
Salesforce and other SMB Solutions are coming soon. ×

calculating a weekday date


boywonder

Recommended Posts

I need to calculate end dates, and disclude weekends. I found this script on the web, but it's not working:

 

DateField+Middle("1000002",MOD(DateField-DATE(1,3,1904),7+1,1)

 

I suspect that the problem is with the date, but I'm not sure??

 

Also, how can I swith the date format to European standard day/month/year?

Link to comment
Share on other sites

wasn't able to buy from database pros ... their site wouldn't respond ...

 

but here's the answer (in case anyone needs it)

 

 

If(IsEmpty(work duration);"";If(IsEmpty(work start date);"";work start+ Int(work duration/5) * 7 +Middle("12345012340123601256014560345623456";

(DayofWeek(work start) - 1) * 5 +

Mod(work duration;5)+1;1)))

Link to comment
Share on other sites

This thread is quite old. Please start a new thread rather than reviving this one.

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...

Important Information

Terms of Use