I am creating a membership database at the moment. When I create a new member, I put the start date and expiry date of their membership. I want the start date to always be the first of a month, but I need it to be the closest first of the month.
i.e. If I set up a member on 05 May, I want the start date to be 01 May. If I set up a member on 20 May, I want the start date to be 01 June as that is closer. Is there any functions that will round dates to the nearest month? Or does anyone have any suggestions as to how I can achieve this?
Thanks in advance.
i.e. If I set up a member on 05 May, I want the start date to be 01 May. If I set up a member on 20 May, I want the start date to be 01 June as that is closer. Is there any functions that will round dates to the nearest month? Or does anyone have any suggestions as to how I can achieve this?
Thanks in advance.