Forum Discussion
MichaelTamoush
6 years agoQrew Captain
I know this is an old thread, but if I can revive it...I need a similar thing but am not sure I understand date d or the +days(1)? In my case I have a set initial start date, and need a due date every quarter. So I think I can do LastDayOfPeriod(Date d, Days(365/12*3), [Initial Start Date]) + Days(1)
What is the date d, and why add the 1 day?
*Edit: Understand the date d (made it today() per this thread. Not sure of the +1 day but working for me.
------------------------------
Mike Tamoush
------------------------------
What is the date d, and why add the 1 day?
*Edit: Understand the date d (made it today() per this thread. Not sure of the +1 day but working for me.
------------------------------
Mike Tamoush
------------------------------
DonLarson
6 years agoQrew Elite
Mike,
What is the business case? Are you searching for the end of the current quarter or of a different quarter based upon a date in the record?
If you truly just need four dates for the end of each quarter
then a formula which returns the closest future date will suffice.
If your dates are more fluid, excluding weekends, holidays.... then you need a more complicated solution.
------------------------------
Don Larson
Paasporter
Westlake OH
------------------------------
What is the business case? Are you searching for the end of the current quarter or of a different quarter based upon a date in the record?
If you truly just need four dates for the end of each quarter
- Mar 31
- June 30
- Sep 30
- Dec 31
then a formula which returns the closest future date will suffice.
If your dates are more fluid, excluding weekends, holidays.... then you need a more complicated solution.
------------------------------
Don Larson
Paasporter
Westlake OH
------------------------------