This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public Date getDateField(final String fieldName) { | |
final Object fieldValue = getField(fieldName); | |
if (fieldValue == null) { | |
return null; | |
} | |
if (fieldValue instanceof Long) { | |
return new Date((Long) fieldValue); | |
} | |
if (fieldValue instanceof Date) { | |
Date fieldDateValue = (Date) fieldValue; |