The following quick start guide is intended to get you up and running with the DateTimePicker control. In this quick start, you'll start with creating a new application, add the DateTimePicker control to it, configure the DateTimePicker control and display today's date and time on it.
Example Title |
コードのコピー
|
---|---|
<link rel="stylesheet" href="/_content/C1.Blazor.Core/styles.css" /> <link rel="stylesheet" href="~/_content/C1.Blazor.Calendar/styles.css" /> <link rel="stylesheet" href="~/_content/C1.Blazor.DateTimeEditors/styles.css" /> |
HTML |
コードのコピー
|
---|---|
<script src="/_content/C1.Blazor.Core/scripts.js"></script> <script src="~/_content/C1.Blazor.Calendar/scripts.js"></script> |
Razor |
コードのコピー
|
---|---|
@using C1.Blazor.Input |
Display today's date and time in the DateTimePicker control by simply using the Value property of the C1DateTimePicker class as shown in the following code:
C# |
コードのコピー
|
---|---|
@page "/DateTimePicker/Index" @using C1.Blazor.Core @using C1.Blazor.DateTimeEditors @using System; @using C1.Blazor.Input <C1DateTimePicker Value="DateTime.Today"></C1DateTimePicker> |