}
private void setTimeFields(Quiz quiz)
{
DateUtil start = QuizFactory.getStartDate(quiz);
DateUtil end = QuizFactory.getEndDate(quiz);
if(start != null)
{
startDate.setValue(start.getDate());
startHour.setText(start.getHour());
startMin.setText(start.getMin());
startAMPM.setValue(start.getTimeOfDay());
}
if(end != null)
{
endDate.setValue(end.getDate());
endHour.setText(end.getHour());
endMin.setText(end.getMin());
endAMPM.setValue(end.getTimeOfDay());
}
}