I have a solution for this , in my JavaBean I have this function
public
String readingSystemDate() {
Date data_sistema = new Date();
SimpleDateFormat simpleDateFormat = new SimpleDateFormat("dd/mm/yyyy");
String formatta_data_sistema = simpleDateFormat.format(data_sistema);
return formatta_data_sistema;
}
but the problem is that it gives me wrong months ( only the months , the days and the year values are OK ), to any refresh of the page !!! Incredible values like 45 , 44 or 56 !!!
There is another way to do the same thing ?
Thanks.