I have UTC date which is one of the properties of a ASP.NET MVC model. I want to convert it in local time to display.
I wrote the conversion logic in C#, bit as the code will run on server, it will take the local time on server. Hence, I will have to convert it in local time on client side i.e. Javascript.
This is my html
<label id="UploadedOn">@item.PublicationDate.ToString("MMMM dd, yyyy,hh:mm: tt")</label>
How can i convert this date to local datetime using javascript..