I am trying to get the date.
I am using this for the date and month
int date = cld.get(Calendar.DATE);
int month = cld.get(Calendar.MONTH);
Instead of it returning as a int i want it to be a string. or maybe the full date format.
Such as: 12/12/12
or…
August 14 2011
How would i go about doing this?
You will want to learn about
SimpleDateFormat.The basics for getting the current time in ISO8601 format:
For other formats:
or