Live Chat Icon For mobile
Live Chat Icon

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. 

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.