Working with dates and times involves enough nuances to confuse the best of us. And although we explored these topics from top to bottom, we recommend one more article:
Here there are more lines of code than text. It's a good practice to read the text and then try to reproduce the examples in the lesson. Doing that will let everything sink in much better.