handle java.util.Date as getTimestamp