Daily Python Projects

Daily Python Projects

CLI Tool to Find the Day of the Week for Any Given Date with Python

Level: Real-World

Ardit Sulce's avatar
Ardit Sulce
Apr 22, 2024
∙ Paid
3
Share

Project Brief

Ever wondered what day of the week you were born? Or what day of the week will 6.23.2089 be? Let’s make a Python program to calculate the day of the week for any given date in a split second.

Expected Output

This program should be in the form of a CLI (Command Line Interface) tool. The user should be able to run the program using the following command from the terminal. For example:

python main.py 6-23-2089

And the program should return this output:

The day of the week for 6-23-2089 is Thursday.

👉 Note that my program here expects the user date to be in the US date format MM-DD-YYYY.

Here is how the program behaves on my computer:

Environment Setup Instructions

Keep reading with a 7-day free trial

Subscribe to Daily Python Projects to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Ardit Sulce
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture