Get Current Year, Month & Day in Python (3 Examples) | Find Date & Time | datetime Module & today()

preview_player
Показать описание
Python code of this video:

from datetime import date # Load date from datetime

print(my_date)
# 2022-07-05

print(current_year) # Print today's year
# 2022

print(current_month) # Print today's month
# 7

print(current_day) # Print today's day
# 5

Follow me on Social Media:

Рекомендации по теме