Exemple #1
0
  @Override
  public DateW bind(String key, String txt) {
    Date result = null;
    try {
      result = simpleDateFormat.parse(txt);
    } catch (ParseException e) {
      e.printStackTrace();
    }

    return DateW.create(result);
  }
Exemple #2
0
 public static DateW create(final Date date) {
   final DateW d = new DateW();
   d.date = date;
   return d;
 }