I have a weekday integer (0,1,2...) and I need to get the day name (\'Monday\', \'Tuesday\',...).
Is there a built in Python function or way of doing this?
H
If you need just to print the day name from datetime object you can use like this:
current_date = datetime.now current_date.strftime('%A') # will return "Wednesday" current_date.strftime('%a') # will return "Wed"