Hi all. I'm trying to create a formula field that will calculate if the date should be the 1st or the 15th of the month based on another date and time field that can be any day of the year.
If the date field is any date between and including the 1st and 14th of the month, the formula needs to show the 1st of the previous month.
If the date field is any date between and including the 15th and 31st of the month, the formula needs to show the 15th of the previous month.
For example, if the date is July 13th, the formula should show June 1st, but if it's October 17th, it should show September 15th.
Any ideas on how to accomplish this would be much appreciated. Thanks.