GPSPOW
asked on
Calculating beginning of fiscal year based on current date
I have to calculate the beginning of the current fiscal year, July 1, based on the current date.
For 6/11/2014 the beginning of the Fiscal Year would be '2013-07-01'.
For 8/15/2015 the beginning of the Fiscal Year would be '2015-07-01'.
What is proper syntax to calculate this?
Thanks
Glen
For 6/11/2014 the beginning of the Fiscal Year would be '2013-07-01'.
For 8/15/2015 the beginning of the Fiscal Year would be '2015-07-01'.
What is proper syntax to calculate this?
Thanks
Glen
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please run the above separately
ASKER
Thanks
I tried using it in a select statement with various dates and it worked just like I want it.
Glen
I tried using it in a select statement with various dates and it worked just like I want it.
Glen
GPSPOW- I just kicked out an article that deals specifically with Fiscal calendar planning --> SQL Server Calendar Table: Fiscal Years. Let me know if this helps you. If yes, click on the 'Good Article' button and provide some feedback. Thanks.
ASKER
Excellent article.
I will begin using this in my future programming projects.
Thanks
Glen
I will begin using this in my future programming projects.
Thanks
Glen
Open in new window
to get fiscal starting date