Use the DateTime.Now property to display the server’s date and time in a Blazor component. Follow this code snippet to do this.
[Index.razor]
@page "/"
<h3>@DateTime.Now</h3>
Refer to this documentation for more details.
Use the DateTime.Now property to display the server’s date and time in a Blazor component. Follow this code snippet to do this.
[Index.razor]
@page "/"
<h3>@DateTime.Now</h3>
Refer to this documentation for more details.
Share with