Skip to content

[docs] When can you parse without the CustomParseFormat plugin? #2739

@rakleed

Description

@rakleed

Describe the bug
String + Format (https://github.com/dayjs/dayjs-website/blob/master/docs/parse/string-format.md) does not specify when the CustomParseFormat plugin can be omitted. The second line "This requires the CustomParseFormat plugin to work" makes it seem like you should always use the plugin.

Expected behavior
List all cases where you can parse without the CustomParseFormat plugin. ChatGPT reports these cases:

YYYY-MM-DD
YYYY-MM-DDTHH:mm:ssZ
YYYY-MM-DDTHH:mm:ss.SSSZ
YYYY-MM-DDTHH:mm
YYYY-MM-DDTHH
YYYY-MM
YYYY
MM-DD
HH:mm:ss
HH:mm

Information

  • Day.js version: 1.11.13
  • OS: N/A
  • Browser: N/A
  • Time zone: N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions