filmov
tv
Get Current Day of Week in Python – Number & Name (3 Examples) | weekday() & isoweekday() Functions

Показать описание
Python code of this video:
from datetime import datetime # Import datetime
print(my_date) # Print actual date
# 2022-06-10 13:49:00.507508
print(my_weekday_1) # Show weekday (in number format)
# 4
print(my_weekday_2) # Print number of weekday
# 5
print(my_weekday_3) # Return day as name
# Friday
Follow me on Social Media:
from datetime import datetime # Import datetime
print(my_date) # Print actual date
# 2022-06-10 13:49:00.507508
print(my_weekday_1) # Show weekday (in number format)
# 4
print(my_weekday_2) # Print number of weekday
# 5
print(my_weekday_3) # Return day as name
# Friday
Follow me on Social Media: