When you display a date to a user, you may want to convert the date to the user’s time zone. With server-side Blazor, the code is executed on the server, so DateTime.Now correspond to the time zone of the server instead of the user’s time zone. Let’s see how we can get the user’s time zone and change the date accordingly. To get the current time zone you need to execute code on the client machine. In a
#asp.net core #.net #web #blazor #datetime