How do I display a server’s date and time on a Blazor component?

Platform: Blazor|Category: General

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.