Hacker News new | ask | show | jobs
by TillE 1589 days ago
Right. In a general case of a library casting types, the only thing that makes sense is to set the time to 00:00:00.

In practical usage, you would probably want to slice off the times and only compare the dates, or use a fuzzier comparison, or just conclude that your input data is crap.