@Override
 public Date convert(String value) {
   if (value == null || value.isEmpty()) {
     return null;
   }
   DateService dateService = DateServiceImpl.get();
   return dateService.getGenericISO8601Converter().parse(value);
 }
Пример #2
0
 @AuraEnabled
 public String getDateTimeISOString() {
   Calendar c = Calendar.getInstance(TimeZone.getTimeZone("GMT"), Locale.US);
   c.set(2004, 9, 23, 16, 30, 0);
   c.set(Calendar.MILLISECOND, 0);
   DateService dateService = DateServiceImpl.get();
   return dateService.getDateTimeISO8601Converter().format(c.getTime());
 }