You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
constdate=moment();console.log(date.format('LT'));// 9:47 PMconsole.log(date.format('H:mm'));// 21:47console.log(date.format('HH:mm'));// 21:47. Just in case you need to precede a '0' when is one digit hour: 04:21
using
moment().format('LT')
, I can get result like 6:02 PMI would like to get th result as 18:02 without setting am/pm
The text was updated successfully, but these errors were encountered: