In the RadzenDatePicker, ShowTime="@false" doesn't seem to be effective #228

Closed
opened 2026-01-29 17:33:47 +00:00 by claunia · 2 comments
Owner

Originally created by @szalapski on GitHub (Oct 15, 2021).

Describe the bug
In the RadzenDatePicker, ShowTime="@false" doesn't seem to be effective

To Reproduce
I have a picker on my page: <RadzenDatePicker ShowTime="@false" @bind-Value="Value" />
It still shows the time, specifically, "12:00:00 AM" for my DateTime values where I am ignoring the time

Expected behavior
ShowTime="@false" should make the date display not show a time at all.

Screenshots
image

Desktop (please complete the following information):
Radzen.Blazor 3.11.6
All browsers

Additional context
Add any other context about the problem here.

Originally created by @szalapski on GitHub (Oct 15, 2021). **Describe the bug** In the RadzenDatePicker, `ShowTime="@false"` doesn't seem to be effective **To Reproduce** I have a picker on my page: `<RadzenDatePicker ShowTime="@false" @bind-Value="Value" />` It still shows the time, specifically, "12:00:00 AM" for my DateTime values where I am ignoring the time **Expected behavior** `ShowTime="@false"` should make the date display not show a time at all. **Screenshots** ![image](https://user-images.githubusercontent.com/2723505/137423023-9075e4cb-dda1-422c-813b-76ddf02735cc.png) **Desktop (please complete the following information):** Radzen.Blazor 3.11.6 All browsers **Additional context** Add any other context about the problem here.
Author
Owner

@enchev commented on GitHub (Oct 15, 2021):

ShowTime will just hide the time part of the picker. To hide the time part of the DateTime you need to specify such format.

@enchev commented on GitHub (Oct 15, 2021): ShowTime will just hide the time part of the picker. To hide the time part of the DateTime you need to specify such format.
Author
Owner

@szalapski commented on GitHub (Oct 15, 2021):

Thanks for the reply...Does this design make any sense? I'm trying to understand the use case for hiding one but not the other. Why would I only want to hide it in the picker and not in the current value?

@szalapski commented on GitHub (Oct 15, 2021): Thanks for the reply...Does this design make any sense? I'm trying to understand the use case for hiding one but not the other. Why would I only want to hide it in the picker and not in the current value?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/radzen-blazor#228