Upwork All skils Test Answers >> Upwork answers of Django >> Complete Django Quiz Answers
Question: Consider the following Python string
representing a human readable date and time: dt = 'Jan 14 2009
11:00PM' Which of the following code snippets will convert the above
string to a Python Datetime object that is suitable for a
django.models.DateField?
The Answer of this quiz is ' date_object = datetime.strptime(dt, '%b %d %Y %I:%M%p')'
The Answer of this quiz is ' date_object = datetime.strptime(dt, '%b %d %Y %I:%M%p')'
No comments:
Post a Comment