Hi,
I need help to create an sql command to find no of days in the current month of calculation and no of days in the month previous to it.
This code works for the current month, but only because mgmtstart is always 1st of the month.
your help is greatly appreciated.
I need help to create an sql command to find no of days in the current month of calculation and no of days in the month previous to it.
This code works for the current month, but only because mgmtstart is always 1st of the month.
Code:
DaysinMonth: DateDiff("d",[mgmtDateStart],DateSerial(Year([mgmtdatestart]),Month([mgmtdatestart])+1,1))
Comment