Hi I have this method
public static Date toDate(XMLGregorianCalendar calendar)
if (calendar == null) {
return null;
}
return calendar.toGregorianCalendar().getTime();
}
The date I get from this method is with this format Fri May 30 12:00:00 EEST 2014
but I wan the format to be like dd-MM-yyyy HH:mm:ss
any idea how ??