Python - How to import 'datetime' Py Py Sep 14, 2022 Import datetime To import datetime, Add the following line to the top of your code. import datetime