I am trying to get Which day of the quarter when you give a current date.
For Example if i give 01/25/2012 then the output should be 25. Since it is the 25th day of the quarter.
Similarly if i give 02/01/2012 it should give 32 as output.
I am able to get the first day of the quarter but not able to get which day it is in the quarter.
Platform is Teradata. The Calendar does not have an option for day_of_quarter which is what I am looking for. Given the date, I require to know the number of day of the quarter.
Please help. Thank you in advance.