Comparing dates off-by-one

My idea you find at

https://forum.getkirby.com/t/date-field-saves-wrong-date/13124/21