Converting US date to EU date challenge? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Converting US date to EU date challenge?

Can I have some guidance on this? Don’t need the answer just a push.

29th Jul 2020, 9:39 PM
Roderick Davis
Roderick Davis - avatar
2 Answers
+ 4
Input is in the form of mm/dd/yyyy or month dd, yyyy. You need display or convert into date/month/year... Varies ways you can do. If you want split and merge, read about strtok function....
29th Jul 2020, 9:53 PM
Jayakrishna 🇮🇳
+ 3
check if first char is alphabet, if it is then change the input from month dd, yyyy into mm/dd/yyyy then simply split each date values and print them by dd/mm/yyyy order
29th Jul 2020, 9:59 PM
Shen Bapiro
Shen Bapiro - avatar