Skip to content

date parsing ignores missing mandatory parts, parses invalid dates #28090

@tpapp

Description

@tpapp

Eg in

julia> VERSION
v"0.7.0-beta.275"

julia> using Dates

julia> tryparse(Date, "19800101", dateformat"yyyy-mm-dd")
19800101-01-01

I would expect nothing, since the -mm-dd part is missing.

(discussion here)

Metadata

Metadata

Assignees

No one assigned

    Labels

    datesDates, times, and the Dates stdlib modulestdlibJulia's standard library

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions