My date is displayed in a button in this format
new SimpleDateFormat("EEEEEEEEEE MMMM dd yyyy")
i.e.
wednesday 15 may 2013
But i want to capitalised each starting element i.e.
Wednesday 15 May 2013
My date is displayed in a button in this format
new SimpleDateFormat("EEEEEEEEEE MMMM dd yyyy")
i.e.
wednesday 15 may 2013
But i want to capitalised each starting element i.e.
Wednesday 15 May 2013
It'll give what you want, why is it not working at your end:
Date date = new Date();
SimpleDateFormat format = new SimpleDateFormat("EEEEEEEEEE dd MMMM yyyy") ;
System.out.println(format.format(date));
"Wednesday 15 May 2013"
trying with Below Way also will solve your Problem.
SimpleDateFormat format= new SimpleDateFormat("EEEEEEEEEE MMMM dd yyyy", Locale.US);