Formatting the date
I would like to ask if anyone knows how to format the date such that it shows Thursday, November 30, 2006.
I'm currently using this line of code to format my date but i want it to display to the one as above.
DateFormat fileDateFormat = new SimpleDateFormat("dd/MMM/yyyy");
is it possible to do that using simple date format?
will out put this:
Date now = new Date();
SimpleDateFormat sdf = new SimpleDateFormat("EEEEEE, MMMM dd, yyyy" );
Monday, May 07, 2007
Thanks! It has showed what i wanted it to show but what does the EEEEE means?
If you look at the API
SimpleDateFormat (Java 2 Platform SE v1.4.2)
you will see that E prints the day of the week, just like yyyy prints the year.
ohh.. i see.. i understand now. Thanks. I'm really a newbie in Java. :)
No problem. I am happy to help.I have a million or more questions about java myself.