Skip to content

DateTime.Parse("30.02.2023") throws System.FormatException: String '' was not recognized as a valid DateTime. #95428

Closed

Description

@palsskv

Description

DateTime.Parse("30.02.2023") throws System.FormatException: String '' was not recognized as a valid DateTime.

Not sure whether such dates should be representable, but the exception is wrong.

Reproduction Steps

Run DateTime.Parse("30.02.2023")

Expected behavior

System.FormatException: String '30.02.2023' was not recognized as a valid DateTime.

Actual behavior

System.FormatException: String '' was not recognized as a valid DateTime.

Regression?

No response

Known Workarounds

No response

Configuration

No response

Other information

No response

Activity

  1. ghost added
    untriaged
    on Nov 29, 2023
  2. tarekgh commented on Nov 29, 2023

    @tarekgh
    Member

    Duplicate of #95331

  3. ghost removed
    untriaged
    on Nov 29, 2023
  4. locked and limited conversation to collaborators on Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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