Convert US Date to EU Date: what's wrong with my code? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Convert US Date to EU Date: what's wrong with my code?

I don't know what is wrong with my code. I've ran many test cases and everything worked fine. My code failed in 4th test case. Can anyone help me to figure out what is wrong please 🙁 https://code.sololearn.com/csksShRY0Ltv/?ref=app

1st Oct 2020, 2:36 PM
Arjun VK
Arjun VK - avatar
3 Answers
+ 1
1st Oct 2020, 2:39 PM
Saja Yasser
Saja Yasser - avatar
+ 2
Arjun VK a bug in the code misinterprets the month number for "June" as 7. Revise cases for string lengths 3 and 4.
1st Oct 2020, 3:41 PM
Brian
Brian - avatar
+ 1
Thank you Brian . It was my mistake. I considered "June" as "Jun" that's why all of "my" test cases worked perfectly
1st Oct 2020, 3:47 PM
Arjun VK
Arjun VK - avatar