activityForm.setActivityDetail(detaildetail);
}
// startdate
String activitystartdate = requestForm.getStartDateTime();
Calendar start = new GregorianCalendar(tz, locale);
if (activitystartdate != null) {
try {
Date dd = simpleDateFormat.parse(activitystartdate);
start.setTime(dd);
} catch (Exception e) {
logger.error("[execute]: Exception", e);
}
}
activityForm.setActivityStartDate(df.format(start.getTime()));
activityForm.setActivityStartTime(tf.format(start.getTime()));
String activityenddate = requestForm.getEndDateTime();
Calendar end = new GregorianCalendar(tz, locale);
if (activityenddate != null) {
try {
Date dd = simpleDateFormat.parse(activityenddate);
end.setTime(dd);
} catch (Exception e) {
logger.error("[execute]: Exception", e);
}
}
activityForm.setActivityEndDate(df.format(end.getTime()));
activityForm.setActivityEndTime(tf.format(end.getTime()));
// alarm date time
String alarmDateTime = requestForm.getAlarmDateTime();
Calendar remind = new GregorianCalendar(tz, locale);
// if alarmDateTime is not null , so set it to ActivityForm
if (alarmDateTime != null) {
try {
Date d = simpleDateFormat.parse(alarmDateTime);
remind.setTime(d);
} catch (Exception e) {
logger.error("[execute]: Exception", e);
}
}
activityForm.setActivityRemindDate(df.format(remind));