Dates

Introduction

The date data type is a non built-in data type, but part of the standard library. Thus, to be able to use it, it has to be imported first.

Exercise 1 - Calculating the duration between dates

Calculate the duration in days between two dates

Exercise 2 - Calculating the sum of a date and a duration

Calculate the sum of a date and a duration