you should consider using one of the DateCalc/Datemath udfs for that task as @mdayno-1 won't work if it is the 1st of anything
_________________________