user2956865
user2956865

Reputation:

How can I set a variable the value of a date I type in using Python

I have a variable called Y which i need the value to be any date I type in but I'm unsure how to do it?

Upvotes: 0

Views: 31

Answers (1)

Jason Sperske
Jason Sperske

Reputation: 30416

Are you looking for strptime()? It lets you parse a string into a date value.

Upvotes: 1

Related Questions