Skip to content

Incorrect date given after providing formate to dayjs #2975

@KirthirajS

Description

@KirthirajS

Describe the bug
A clear and concise description of what the bug is.

Expected behavior
A clear and concise description of what you expected to happen.

Information

  • Day.js Version [e.g. v1.0.0] 1.11.19
  • OS: [e.g. iOS]
  • Browser [e.g. chrome 62] 142.0.7444.135
  • Time zone: [e.g. GMT-07:00 DST (Pacific Daylight Time)] UTC+ 5:30

I have provided date as value=2025-11-18 오후 4:10:27

formate = YYYY-MM-DD A h:mm:ss

logic i am using = dayjs(value,"YYYY-MM-DD A h:mm:ss");

output i am getting is = 2025-11-18 AM 4:10:27

if i add local and update imports aslo its showing AM in localized language

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