Skip to content
Advertisement

Tag: time-format

how to convert minutes to HH:mm with moment plugin

I have 2 timestamps and i already calculated the time difference in minutes with moment plugin. Now i want to convert the minutes to HH:mm. What i am doing wrong? Answer Since you have not specified what is the error, I’m assuming you are leaving the dependencies required for duration method. The moment-duration-format depends on moment, so you should require

Advertisement