# Use the date() method: datetime.datetime.now().date()
Here is what the above code is Doing:
1. We’re importing the datetime module.
2. We’re creating a datetime object by calling datetime.datetime.now().
3. We’re calling the date() method on that datetime object.