What is a classy way to way truncate a python datetime object?

In this particular case, to the day. So basically setting hour, minute, seconds, and microseconds to 0.

I would like the output to also be a datetime object, not a string.

17 Answers
17

Leave a Reply

Your email address will not be published. Required fields are marked *