Skip to content

DateTimePicker body defaulting to previous monthΒ #4223

@eramosr16

Description

@eramosr16

Is there an existing issue for this?

  • I have searched the existing issues

Describe the bug

DateTimePicker.razor component defaults to previous month of whatever date is passed as value.

Expected Behavior

Should default to current month passed as value

Steps To Reproduce

Here is the reference on the code:

private string MonthString => string.Format(MonthText, Months.ElementAtOrDefault(CurrentDate.Month - 1));

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

Metadata

Metadata

Assignees

Labels

questionQuestion that needs to be answered

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions