@mia@Meyerweb Maybe it helps to think of dates like RGB color spaces? There are two separate concerns: assigning a color space to some RGB numbers, and converting between RGB color spaces.
I wrote down that one time I got a calendar thing to work between the browser and PHP (sorry, to anchor to the section):