Blazor コントロール
選択モード
コントロール > DateTimeEditor > DateTimePicker の概要 > 選択モード

By default, the DateTimePicker control displays both the date picker and time picker. However, you may choose to show only the date picker to let the user select date from the displayed calendar or just the time picker to let the user select time from the time panel. This can be achieved using SelectionMode property of the C1DatetimePicker class. The SelectionMode property allows you to change the selection to either Date or Time through the SelectionMode enumeration.

To change the selection mode and display the date picker only in the DateTimePicker control, use the following code:

C#
コードのコピー
<C1DateTimePicker Value="DateTime.Today" Format="MM-dd-yyyy" SelectionMode="SelectionMode.Date"></C1DateTimePicker>