func isDateField(_ fieldno: Int) -> Bool

Function isDateField() returns TRUE is a field is Date or DateTime.


{
    // your code
    if dbf.isDateField(0) {
        dbf.getDateTime(0)
    } else {
        dbf.getString(0)
    }
    // your code
}