How to change date format to 01-10-2020 in the below program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

How to change date format to 01-10-2020 in the below program

https://code.sololearn.com/cmMGBcMhW9ny/?ref=app

5th Jul 2020, 7:37 AM
Naveen K
Naveen K - avatar
1 Answer
+ 5
I have put some code samples together in the attached file. You can reduce the number of lines in code, when you convert date input to a datetime object. With this you are free to output what ever date format you like. If you have further questions just come back. https://code.sololearn.com/c0mbzJMTt9nJ/?ref=app
5th Jul 2020, 2:18 PM
Lothar
Lothar - avatar