use appointing formatter to format input date , if date is null return string defaultnullvalue concode_field_sep ThreadLocal<SimpleDateFormat> dateThreadLocal concode_elem_sep String DATE_FORMAT concode_elem_sep String DATE_TIME_FORMAT concode_elem_sep ThreadLocal<SimpleDateFormat> dateTimeThreadLocal concode_field_sep boolean isDateType concode_elem_sep DateFormat getDefaultTimeFormat concode_elem_sep DateFormat getDefaultDateFormat concode_elem_sep Date parse concode_elem_sep Date parse concode_elem_sep Date parse concode_elem_sep Date parse concode_elem_sep Date parse concode_elem_sep SimpleDateFormat initialValue concode_elem_sep SimpleDateFormat initialValue concode_elem_sep String defaultFormat
String function ( DateFormat arg0 , Date arg1 , String arg2 ) { if ( arg1 == null ) { return arg2 ; } else { return arg0 . format ( arg1 ) ; } }