Пример #1
0
 public String getFecha() {
   return (String) sdf.format(this.fecha.getDate());
 }
Пример #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;
 }