# getValueAsDateTime method

DateTime? getValueAsDateTime()

Gets the the field value as a date/time.

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

## Implementation

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