Answers for "How to get todays day in python"

3

python get day name

import datetime
now = datetime.datetime.now()
print(now.strftime("%A"))
Posted by: Guest on June-07-2020
1

today date in python

from datetime import date
today = date.today().strftime("%d-%m-%Y")
Posted by: Guest on March-24-2021
1

today date python

today = datetime.today().strftime("%Y-%m-%d %H:%M:%S")
Posted by: Guest on January-07-2021

Python Answers by Framework

Browse Popular Code Answers by Language