String startday = (String)dynaForm.get("startday");
String startyear = (String)dynaForm.get("startyear");
String startTime = (String)dynaForm.get("starttime");
try {
Timestamp start = DateUtility.createTimestamp(startyear, startmonth, startday, startTime);
mapEvent.put("StartDate", start);
} catch (Exception e) {
logger.error("[execute] SaveEventHandler saveEvent thrown.", e);
}
}
if ((dynaForm.get("endmonth") != null) && (dynaForm.get("endday") != null)
&& (dynaForm.get("endyear") != null)) {
String endmonth = (String)dynaForm.get("endmonth");
String endday = (String)dynaForm.get("endday");
String endyear = (String)dynaForm.get("endyear");
String endTime = (String)dynaForm.get("endtime");
try {
Timestamp end = DateUtility.createTimestamp(endyear, endmonth, endday, endTime);
mapEvent.put("EndDate", end);
} catch (Exception e) {
logger.error("[execute] SaveEventHandler saveEvent thrown.", e);
}
}