Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thonny datetime
#1
Although I am an experienced programmer, I'm new to Python.I'm working in the free Thonny 3.* IDE and I tried the following:

from datetime import date
today = date.today()
print(today)
But I received this error: "from datetime import date
ImportError: cannot import name 'date' from 'datetime' (****\****\Python Scripts\datetime.py)"

I've tried to import other methods from datetime and also I've tried to import the whole module, but nothing I try executes.
What am I missing?
Thank you.
Reply


Messages In This Thread
Thonny datetime - by DeveloperM - Jan-28-2019, 09:47 PM
RE: Thonny datetime - by woooee - Jan-28-2019, 10:25 PM
RE: Thonny datetime - by buran - Jan-29-2019, 12:06 PM
RE: Thonny datetime - by DeveloperM - Jan-31-2019, 06:22 PM
RE: Thonny datetime - by buran - Jan-31-2019, 06:38 PM
RE: Thonny datetime - by DeveloperM - Jan-31-2019, 07:42 PM
RE: Thonny datetime - by buran - Jan-31-2019, 08:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Thonny Kundan 1 2,360 Aug-14-2019, 03:50 PM
Last Post: nilamo

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020