Date-Time vs Date - Strange Behavior?

Preston Murphy
Preston Murphy ✭✭✭
edited 02/22/21 in Smartsheet Basics

I noticed that if you neglect the fact that a date-time is not the same as a date, you get unexpected results. If you look at the image you see a date-time and a date column that is set to equal the column to its left. As you can see it does not produce an error, and it populates the date. However, only in certain conditions does the date match.

Can anyone explain this unexpected behavior? What logic is being used behind the scenes here, and is there any particular reason it works this way?

Additionally, the DATEONLY function does not appear to resolve the issue, as it is producing counterintuitive results? Can anyone explain what might be going on? See the image below, where the right column is DATEONLY of the left column.


Best Answers

Answers