I am trying to populate my fiscal day in year value. My fiscal year starts on March 1, 2XXX and ends on the last day of February. When populating the calendar day in a year, that was pretty straightforward: DATEPART(dayofyear, PKDate). I'm not as up-to-date on while statements as I should be.
↧