Sunday, 28 March 2021

Moment.js

             var todayapt = moment.utc(ele.apptDate).format('MMMM Do YYYY, h:mm:ss a');

without utc i am getting time zone + 5:30 adding so i used this utc.

Result:April 4th 2021, 1:00:00 am


No comments:

Post a Comment

7 Common mistakes in Dot Net — You can avoid

  There are many common mistakes made during .NET (ASP.NET, .NET Core) development, which affect performance, security, and code… Code Crack...