I'm OK with seeing all three types being that we are talking about Javascript.
Most of the real logic should be at some other layer, where validation can be done easier, and better and with type checking.
In the UI are you at the whim of too many technologies that you can't control.
If you can control the type top to bottom, I'd urge always, always use a DateTimeOffset though.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I'm OK with seeing all three types being that we are talking about Javascript.
Most of the real logic should be at some other layer, where validation can be done easier, and better and with type checking.
In the UI are you at the whim of too many technologies that you can't control.
If you can control the type top to bottom, I'd urge always, always use a DateTimeOffset though.