on 05-04-2020 12:25 PM
This is for finding the fiscal year end date. Our Fiscal Year End date is last Saturday of September.
I have a Transaction Date. I have to find the Date of last Saturday of September corresponding to the Year of Transaction Date.
For example if Transaction Date = 17/04/2020, I have to find the date of last Saturday of September 2020.
Can someone please help me on this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
last_saturday_sept = case( weekday(3009YYYY),
0, adddays(3009YYYY,-2),
1, adddays(3009YYYY,-3),
2, adddays(3009YYYY,-4),
3, adddays(3009YYYY,-5),
4, adddays(3009YYYY,-6),
5, adddays(3009YYYY,0),
adddays(3009YYYY,-1));
here YYYY is year from transaction date.
Hope it helps
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
70 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.