Jul 01, 2024 09:20 AM
I am building a table that creates a record for monthly billing. The billing happens on the same day each month. I have a Date Paid field and a Next Date Paid formula field, and an automation that triggers after the bill gets paid to create a new record with the Next Date Paid from the old record populating into the Date Paid field of the new record.
The problem I'm having is with the DateAdd() function. My current formula is:
Solved! Go to Solution.
Jul 01, 2024 10:03 AM
Well, I did some playing around with timestamps to see if that would change anything, and of course, it changed EVERYTHING.
Turns out my initial assumption that DATEADD([DATE], 1, Month) just adds 30 days was incorrect. The reason I was having a disconnect is because my DatePaid field had no time stamp, and the formula field decided it needed a timestamp, which turned out to be 4pm, so it showed as being the day before it should have. Added a timestamp to the original date field, and now it works fine!
Jul 01, 2024 09:41 AM
A screenshot of the table I'm working with.
Jul 01, 2024 10:03 AM
Well, I did some playing around with timestamps to see if that would change anything, and of course, it changed EVERYTHING.
Turns out my initial assumption that DATEADD([DATE], 1, Month) just adds 30 days was incorrect. The reason I was having a disconnect is because my DatePaid field had no time stamp, and the formula field decided it needed a timestamp, which turned out to be 4pm, so it showed as being the day before it should have. Added a timestamp to the original date field, and now it works fine!
Aug 01, 2024 05:50 AM
Thanks for posting this - I was just trying to clean up my formatting to remove the timestamps from displaying and it changed all my data. I'm perplexed as to why this would interfere with the formula, but I'm glad I now know to expect it!