Why is the DATEONLY formula outputting future dates?
Any time stamp after 7pm will be counted for the following date. Please see snapshot below. The time stamp is auto generated when the user fills out a form.
Best Answer
-
It is because of timezones. You are going to need a formula that grabs the hour, searches for "PM" and then subtracts 1 for anything greater than 7pm.
It will look something like this...
=DATEONLY(Created@row) - IF(AND(FIND("PM", Created@row) > 0, VALUE(SUBSTITUTE(MID(Created@row, 10, 2), ":", "")) > 7), 1, 0)
Answers
-
It is because of timezones. You are going to need a formula that grabs the hour, searches for "PM" and then subtracts 1 for anything greater than 7pm.
It will look something like this...
=DATEONLY(Created@row) - IF(AND(FIND("PM", Created@row) > 0, VALUE(SUBSTITUTE(MID(Created@row, 10, 2), ":", "")) > 7), 1, 0)
Help Article Resources
Categories
- All Categories
- 14 Welcome to the Community
- Customer Resources
- 64.9K Get Help
- 441 Global Discussions
- 140 Industry Talk
- 472 Announcements
- 4.9K Ideas & Feature Requests
- 129 Brandfolder
- 148 Just for fun
- 68 Community Job Board
- 497 Show & Tell
- 33 Member Spotlight
- 2 SmartStories
- 300 Events
- 36 Webinars
- 7.3K Forum Archives
Check out the Formula Handbook template!