[Solved] Convert given time into millisecond [closed]


You just need to make a Date object and use the getMilliseconds function of that object.

Example:

var d = new Date();
d.setHours(22); //10 PM
d.setMinutes(25);
d.setSeconds(10);

console.log(d.getMilliseconds() + ' milliseconds');

1

solved Convert given time into millisecond [closed]