python short weekday name code example Example: python datetime get weekday name import datetime now = datetime.datetime.now() print(now.strftime("%A"))