Django Fundamentals Test — Flashcards | Web Development | FatSkills

Django Fundamentals Test — Flashcards

Fast review mode: answers are shown by default so you can skim quickly. Hide them if you want to self-test.

1 of 17 Ready
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?
date_object = datetime.strptime(dt - '%b %d %Y %I:%M%p')
Shortcuts
Prev Space Show / hide Next
Turn this into a study set.
Sign in with Google to save tricky questions to your reminder list and resume on any device.
Sign in with Google Free • no extra password