DEV Community

Cover image for Using Current Date & Time in Python
Noor E Jannat Nafia
Noor E Jannat Nafia

Posted on

Using Current Date & Time in Python

If we want to use present date, we need to use python library.

At first, we need to need to import the required library.

Image description

Then, save the date in a variable and print it, or use it as per need.

Image description

Top comments (0)