Prepare an application to show date format.
Question: Write an application in which the user can enter a date using digits and slashes (for example, " 6/24/2012 " ), and receive output that displays the date with the month shown as a word (such as " June 24, 2012 " ). Allow for the fact that the user might or might not precede a month or day number with a zero (for example, the user might type " 06/24/2012 " or " 6/24/2012 " ).
Do not allow the user to enter an invalid date, defined as one for which the month is less than 1 or more than 12, or one for which the day number is less than 1 or greater than the number of days in the specified month.
Also display the date ' s ordinal position in the year; for example, 6/24 is the176th day. In this application, use your knowledge of arrays to store the month names, as well as values for the number of days in each month so that you can calculate the number of days that have passed. Figure 8-21 shows the output when the user has entered 6/24/2012. Save the application as ConvertDate.java
Use the GregorianCalendar class to determine the date's ordinal position in the year
Make this application using java programming. Create this application in simple way.