Skip to content

convert.todatetime with null value #11464

@Greydog1

Description

@Greydog1

Type of issue

Code doesn't work

Description

The documentation indicates that a null value will return .minvalue. But I receive a conversion error in vb.net: "Object cannot be cast from DBNull to other types."

Page URL

https://learn.microsoft.com/en-us/dotnet/api/system.convert.todatetime?view=net-9.0

Content source URL

https://github.com/dotnet/dotnet-api-docs/blob/main/xml/System/Convert.xml

Document Version Independent Id

8e6b1295-7f2a-906c-d15a-7746d1004a29

Platform Id

74c1da5b-33d7-bdd0-7764-509f361d4d36

Article author

@dotnet-bot

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions