Title essentially says it all. I am trying to create an application that displays a random date between January 1, 1900 and December 31, 2014 inclusive. Retrieve a random year, month, and day. Also considering that April, June, September, and November have only 30 days. If the month is February, the maximum day is 28 unless it is a leap year in which case the maximum day is 29.
My application must also display the date twice as follows:
Random Date is: 10/3/2000
Formatted date: October 3rd, 2000
If someone could possibly help me out because I have no idea where to even start.
Aucun commentaire:
Enregistrer un commentaire