How to get current date in python?
![](https://pythonpoint.net/wp-content/uploads/2020/12/Yellow-Greyscale-Script-Landscape-Photography-Blog-Banner-1024x576.jpg)
We can get the current date by importing a library known as datatime.
e.g.,
from datetime import date today=today.date() print(t)
![](https://pythonpoint.net/wp-content/uploads/2020/12/Screenshot-942-1024x451.png)
This is how we can get current date using python code.
Subscribe
Login
Please login to comment
0 Discussion