Skip to content

Date Picker and Date Range Picker - Error on last week #440

@aarrielg

Description

@aarrielg

Components:
CDatePicker, CDateRangePicker

Mode:
week

Documentation link: coreui.io/react/docs/forms/date-picker/#weeks

Browsers Tested:

Firefox (latest)

Chrome (latest)

Description

When selecting either the last week of December 2025 or the first week of January 2026 in week mode, the component incorrectly displays the first week of 2024.

This behavior is visible directly on the documentation page linked above and has been confirmed on both Firefox and Chrome.

I’m attaching a GIF below to clearly demonstrate the issue.

Image

Steps to Reproduce

Go to the official documentation page at [coreui.io/react/docs/forms/date-picker/#weeks].

Open the CDatePicker in week mode.

Navigate to December 2025.

Select the last week of December or the first week of January 2026.

The component highlights the first week of 2024 instead of the correct week.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions