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 5790 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

This one eludes me

I try to get the Next Month Name result through a calc.

MonthName ( Get (Current Date) )

Text

This one works fine for the current month but how to get the month?

Thanks for your help

Posted

NextMonthName =

MonthName

(Date ( Month ( aDate )+1 ;

Day ( aDate ) ;

Year ( aDate ) ))

Posted

No, it returns "April"

MonthName

(Date ( Month ( Get ( CurrentDate ) )+1 ;

Day ( Get ( CurrentDate ) ) ;

Year ( Get ( CurrentDate ) ) ))

Posted

This would sure be a limited calculation ... text month name of next month. Are you aware that you can display any date, including any date from the next month (from layout level date format) as month name only? I don't think I've ever had the need to create a month name as text as a calculation. You may need it but are you sure? :wink2:

Posted

Good point, LaRetta. He's better off leaving out the MonthName part of the calc and just using formatting.

Posted

This could be optimized a little, since the Day() and Year() portions of current date are irrelevant:

MonthName (

Date ( Month ( Get (CurrentDate) ) + 1 ; 1 ; 1 )

)

---

ADD:

Actually, it MUST be made so, because the suggested:

MonthName ( Date (

Month ( Get (CurrentDate) ) + 1 ;

Day ( Get (CurrentDate) ) ;

Year ( Get (CurrentDate) )

) )

will return an incorrect result in the 31st day of every month except July and December, and also in the last 3 or 4 days of January (depending on the current year being a leap year or not).

Posted

Isn't that ironic. I just took the example calc out of the FM Help! But, why would you want 1 for the year?

Posted

Isn't that ironic. I just took the example calc out of the FM Help!

OMG, so you did. How depressing...

But, why would you want 1 for the year?

Well, I had to pick a number between 1 and 3,999, and it just happened to be closest at hand. And it's cheaper than 3999 when it comes to printing.

Posted

And it's cheaper than 3999 when it comes to printing.

And typing 1 for the year is more efficient than typing 3999 because it is 3 less key strokes. :laugh2:

Posted

Hello

I want to show only the last month in a report. How can I do that?

Thanks

Isabelle

Posted

Hello Isabelle. I'm not sure that your question relates to this thread. Perhaps a mod will break it into its own thread. Without more detail, I'd say that you need to FIND all records for the month you wish to include in your report. Read up on finding dates.

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