Welcome to the Treehouse Community
Looking to learn something new?
Rabih Atallah3,405 Points
what's wrong with my code
Please what's wrong with my script: it's returning what it should but still not passing the challenge
## Examples # to_string(datetime_object) => "24 September 2012" # from_string("09/24/12 18:30", "%m/%d/%y %H:%M") => datetime import datetime def to_string(datetime): x = datetime.replace(2012, 9, 24, 0) return x.strftime("%d %B %Y")
Vittorio Somaschini33,371 Points
Please note that you don't need to replace the datetime to match the example value. That is just an example.
You simply need to return the datetime that is passed into the function in the right string format.
I hope I made it clear.