# getValueAsDate method

DateTime? getValueAsDate()

Gets the the field value as a date.

return The field value as a date. throws BiosealException An error has occurred during Bioseal Library execution.

## Implementation

    DateTime? getValueAsDate() {
      DateTime valueAsDate = DateTime();
      var err = biosealSDK.id3BiosealField_GetValueAsDate(_pHandle.value, valueAsDate.handle);
      if (err == BiosealError.objectDoesNotExist.value) {
        valueAsDate.dispose();
        return null;
      }
      if (err != BiosealError.success.value) {
        valueAsDate.dispose();
        throw BiosealException(err);
      }
      return valueAsDate;
    }