Skip to content
Sign upLog in
← Back to Community
How to write the current day of the week using calendar and if else statments
Profile icon
Haizi
I am trying to make a calendar assistant app. And I need to make a way to print the current day and I tried to use if-else statements like:

If day_of_the_week = 0
print("Today is Monday")
But it didn't work so I deleted it might try again. Just, please answer

Voters
Profile icon
Haizi
Comments
hotnewtop
Profile icon
Dart
from datetime import date today = date.today() //generates date print(today) if str(today) == "2020-02-27": //converts date to string and checks to see if it matches the date in the second string print("that is today")

here is a solution i came up with hope it helps :3

Profile icon
Dart

@Haizi
no problem! hope i helped! (if i did hit that little checkmark by my comment)

Profile icon
Dart

@Haizi
np!

Profile icon
SapphiraTinkl

I think the best option is to look it up on youtube for different tutorials. I am a fan of paper-based calendars, and I can organize there everything however I want and love. On top of that, everything gets easier when I have platforms like https://www.123calendars.com/march-calendar.html, which give me free simple and beautiful calendars that I can rind and hand wherever I want. Moreover, this is the best way for me to be organized, keep my visual memory trained, and train it even better.