Get Day of Week from datetime in Python – Number & Name (3 Examples) | weekday() vs. isoweekday()

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

import datetime # Import datetime module in Python

print(my_date) # Print example date
# 2021-08-03 16:48:20

print(my_weekday_1) # Return weekday in number format
# 1

print(my_weekday_2) # Print number of weekday
# 2

print(my_weekday_3) # Return day as name
# Tuesday

Follow me on Social Media:

Рекомендации по теме
Комментарии
Автор

I love this
This is great
Keep going 😊😊😊

pepper_lab
join shbcf.ru