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.
HTML |
Copy Code
|
---|---|
<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" /> <link rel="stylesheet" href="/_content/C1.Blazor.Input/styles.css" /> |
HTML |
Copy Code
|
---|---|
<script src="/_content/C1.Blazor.Core/scripts.js"></script> <script src="/_content/C1.Blazor.Calendar/scripts.js"></script> <script src="/_content/C1.Blazor.Input/scripts.js"></script> |
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# |
Copy Code
|
---|---|
@page "/DateTimePicker/Index" @using C1.Blazor.Core @using C1.Blazor.DateTimeEditors @using System; @using C1.Blazor.Input <C1DateTimePicker Value="DateTime.Today"></C1DateTimePicker> |