0

Code Coach challenge: Convert US to EU date

https://www.sololearn.com/coach/75?ref=app My approach: YEAR:- Always take the last four characters MONTH:- All numbers: Take all characters before the first '/', else: I wrote all the possible letter positions indicating specific months DATE:- If all numbers: Take all characters between the two '/'s, else: Take the second value of split() of the input and remove ',' from it. This gives two errors. Can anybody explain why? https://code.sololearn.com/caqQ3zXT2W6f/?ref=app

29th May 2020, 1:22 PM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar
1 Odpowiedź
0
Thanks man, it worked! I'll try to shorten the code now, will update here
31st May 2020, 3:34 AM
Md. Niamul Ahad Chowdhury
Md. Niamul Ahad Chowdhury - avatar