Write a java program to display a date input by user in three different formats. 1. DD/MM/YYYY 2. MM/DD/YYYY 3. DD MM,YYYY
I have written this code. Please help me to find the error and run this program. https://code.sololearn.com/c4XgmUtLhv8C/?ref=app
Atul Gautam You're welcome. Yeah! There are many ways to do that. You can refer this for more info👇 https://stackoverflow.com/questions/4011075/how-do-you-format-the-day-of-the-month-to-say-11th-21st-or-23rd-ordinal
Minho thanks for the help. But it is giving today's date not the date entered by user. It is giving problem.
Minho Thankyou so much for your help. I got it. Just one question I have that Is there any way to display 'th' for like 11, 12, 13 etc or 'nd' for 2, 22 etc or 'st' for 1, 31 etc along with date in case of last date format ??