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

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

Recommended Posts

Posted

Hi everyone

I am presetting some dates as an assumption that the user wants a report for the previous month. I intend to set a global (via script) to the 1st date of the month previous to the current date. I want to set another global to the last date of the month previous to the current date.

I know this must be relatively simple but I cannot for the life of me work it out nor can I find it in the forum. Can anyone help please?

Many thanks in advance

Phil.

Posted

The last day of a month is also the day before the first day of the following month.

Posted

Let FileMaker do the math. Where yourDate = Get(CurrentDate) or some other date, this will give you the last day of the previous month:

Date( Month( yourDate ) ; 0 ; Year( yourDate ) )

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