Convert US date to EU date | Sololearn: Learn to code for FREE!

+1

Convert US date to EU date

The code works but I was wondering if there's a easier way to solve it, I feel like I wrote a lot of code to a problem that could have been solved in a easier way https://code.sololearn.com/cghVu55Xfn5o/?ref=app

1/10/2021 2:54:23 AM

Itzel Medina

7 Answers

New Answer

+3

Hi Itzel Medina , https://code.sololearn.com/cmRr3WV33AYQ/?ref=app 🙂 This will be good for you 🐾

+5

AKSHAY [less active] Is my solution wrong? 🤔 What about solving it with HTML? I am not sure. 🤔

+3

date_EU = date_US + 500 years

+2

Jan Markus I think your solution is right. Solving with HTML 🤔🤔...... I am not working on HTML currently🤷🏻‍♂️, but you can try

+1

Jan Markus do you have any reason to believe so? 🤔

+1

P∆WAN M∆URY∆, your solution is good, but it seems to me that it can be slightly improved by optimizing the date patterns and try-catch constructions. My code: https://code.sololearn.com/c4lHhYU1NSYy/?ref=app

+1

Thanks! I'll try that 🙏