id/email
password
forgot password | create account
about | help | code help+videos | done | prefs
CodingBat code practice

 

dvermes@scarsdaleschools.org > getDateStr
prev  |  next  |  chance

Write a Python function that gets the current date and returns it as a String in the format MM-DD-YYYY. Example of return value: '05-31-2018' Month and day should be two digits long, , so be sure you test all combinations of single/double-digit months and days.


...Save, Compile, Run (ctrl-enter)

def getDateStr(theDate):

Editor font size %:
Shorter output


Forget It! -- delete my code for this problem

Progress graphs:
 Your progress graph for this problem
 Random user progress graph for this problem
 Random Epic Progress Graph

Python Help

Difficulty: 100

Copyright Nick Parlante 2017 - privacy