import datetime
now = datetime.datetime.now()
print(now.strftime("%A"))
See the Python docs for datetime.now, datetime.strftime and more on strftime.
More Related Contents:
- Convert python datetime to epoch with strftime
- How to parse dates with -0400 timezone string in Python?
- Creating a range of dates in Python
- How do I calculate the date six months from the current date using the datetime Python module?
- Convert pandas timezone-aware DateTimeIndex to naive timestamp, but in certain timezone
- How to compare two dates?
- Plotting dates on the x-axis with Python’s matplotlib
- datetime dtypes in pandas read_csv
- Generate a random date between two other dates
- How do I get the UTC time of “midnight” for a given timezone?
- pandas dataframe groupby datetime month
- ISO time (ISO 8601) in Python
- pytz localize vs datetime replace
- Find the end of the month of a Pandas DataFrame Series
- Generate a list of datetimes between an interval
- Convert Year/Month/Day to Day of Year in Python
- How to get day name from datetime
- Convert date from excel in number format to date format python [duplicate]
- Pandas: Datetime Improperly selecting day as month from date [duplicate]
- Convert String with month name to datetime
- Generate RFC 3339 timestamp in Python [duplicate]
- Pandas converting row with unix timestamp (in milliseconds) to datetime
- How to calculate difference between two dates in weeks in python
- Converting string to datetime object
- Comparing a time delta in python
- datetime: Round/trim number of digits in microseconds
- How can I select all of the Sundays for a year using Python?
- Keep a datetime.date in ‘yyyy-mm-dd’ format when using Flask’s jsonify
- Why doesn’t pytz localize() produce a datetime object with tzinfo matching the tz object that localized it?
- Python generating a list of dates between two dates