This content has been marked as final.
Show 3 replies
-
1. Re: Calculated field for last day of a specific month
Paul Wachtler Jun 19, 2019 11:26 AM (in response to Okan Olgac)1 of 1 people found this helpfulHi Okan,
If you always want your calculation to return the last day in June of the next year, you can do something like this:
dateadd('day',-1,dateadd('month',6,datetrunc('year',dateadd('year',1,[Training A Date]))))
There's a lot of date calcs in there but here's what it does:
- adds a year to the training date - for example, if training was April 15 2019, this calculated date would be April 15, 2020
- take the first day of January for the that date - January 1, 2020
- Adds 6 months to that date - July 1, 2020
- Subtract a day to get the last day in June - June 30, 2020
Let me know if you have any questions.
Best,
Paul
-
2. Re: Calculated field for last day of a specific month
Okan Olgac Jun 20, 2019 10:58 AM (in response to Paul Wachtler)Thanks Paul. Much appreciated.
Okan
-
3. Re: Calculated field for last day of a specific month
Paul Wachtler Jun 20, 2019 12:25 PM (in response to Okan Olgac)Welcome Okan! Happy to help!