In my app, I am successfully using Moment to format times. There is one instance where I need to count hours instead of converting it to a regular time format.
The time format I am working with looks like this: 0:00:02 AM
However, I am trying to remove the unnecessary 'AM' or 'PM' in my formatting process. My code snippet currently looks like this:
moment('0:00:02 AM', 'hh:mm:ss').format('hh:mm:ss')
Although this code changes the time to 12:00:02, I actually need it to remain at 00:00:02. Any assistance on this issue would be greatly appreciated!