public String getFecha() {
   return (String) sdf.format(this.fecha.getDate());
 }
Exemple #2
0
 private String formatDate(Date myDate) {
   String strFormat = "yyyy-MM-dd HH:mm:ss";
   SimpleDateFormat formatter = new SimpleDateFormat(strFormat);
   String strDate = formatter.format(myDate);
   return strDate;
 }