Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

Date: Excluding Weekends in a spcified calc


This topic is 6952 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

As I build my database, i constantly run into problems that my brains can't figure out all alone.

Anyway, I have a "last call" and "next call" field with buttons. The "last call" field inserts current date (fine..no problem. super easy to do).

My "next call" field/button brings up custom dialog for "one day," "3 months" or "exact date."

Regardless of that,

I need to specify a calculation that if the next call equals a Saturday or Sunday, automatically inserts "Monday" into the next call field.

Do you follow me? I hope so.

More importantly, do you have any suggestions?

Posted

fishbone,

Try somthing like this.

Let ( [ dw = DayOfWeek ( Date); f =  Case (dw = 1; Date + 1; dw = 7;  Date + 2; Date)] ; f )

If you want to consider holiday etc. You will have to modify this calc of course.

Posted

I guess to take your fields, and tweak the calculation that you will use in your calculated results field, try this one instead.

Let ( [ dw = DayOfWeek ( Date); 

               d = next call;

               f =  Case (dw = 1; d + 1; dw = 7;  d + 2; d)

            ]; 

            f 

          )

This topic is 6952 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.