How To Check If Today Is Monday In Python

In this tutorial, we will demonstrate how to check if today is Monday using Python. Learning this technique can be helpful when creating applications that involve logging dates, organizing workflow, or facilitating reminders, among others.

Step 1: Import the necessary libraries

Begin by importing the datetime library, which provides numerous functions and classes for managing dates, times, and time intervals.

Step 2: Get the current date

Next, retrieve the current date using the method from the datetime library. This method returns the current local date, expressed as a date object.

Step 3: Check if today is Monday

To determine whether it’s Monday, use the weekday() method on the date object. This method returns an integer representing the day of the week, with Monday represented by 0, and Sunday by 6.

After obtaining the result, print it.

Full code

Here’s the complete code:


Is today Monday? True

Note that the output value will be True if it’s Monday, and False otherwise.


In this tutorial, we learned how to check if today is Monday in Python using the datetime library. This can be easily adapted to check for other days of the week by changing the integer value in the comparison. For example, you can check if it’s Wednesday by using current_date.weekday() == 2 instead.