Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×
The Claris Museum: The Vault of FileMaker Antiquities at Claris Engage 2025! ×

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

Recommended Posts

  • Newbies
Posted

Hi

I need the following and I think I can do it in a calculation field, but have also thought of a script.

Field A is a date field. I want field B to contain the date of field A minus 60 days. But if the new date is less than today's date then it should display today's date.

Can anyone help me with constructing fiels B?

Kind regards, Mille

Posted

Try:

Max ( FieldA - 60 ; Get (CurrentDate) )

This looks like it should be done in an unstored calculation field - if you do it by script, then "today's date" will be the date on which the script ran.

Posted

I've not used the Max function a great deal, so I'd try comment's suggestion first, but this should work too:

Let(

D = FieldA - 60

;

If( D < Get( CurrentDate ) ; Get( CurrentDate ) ; D )

)

This topic is 5445 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.