Need formula for anniversary date on 1st of month instead of day of hire
Summary:
I need to calculate anniversary dates so that they are the first day of the month they fall in instead of the annual hire date. I have got it partway there but for some employees it is giving multiple anniversary dates and it's assigning leap year to 2/4 instead of 2/1.
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable): TIMESTAMPADD(SQL_TSI_MONTH, -1, TIMESTAMPADD(SQL_TSI_DAY, 1 - DAYOFMONTH(TIMESTAMPADD(SQL_TSI_YEAR, 1, "Worker"."Employee Hire Date")), TIMESTAMPADD(SQL_TSI_MONTH, 1, TIMESTAMPADD(SQL_TSI_YEAR, 1, "Worker"."Employee Hire Date"))))