Javascript date getUTCMilliseconds() method returns the milliseconds in the specified date according to universal time. The value returned by getUTCMilliseconds() is an integer between 0 and 999.
Its syntax is as follows −
Date.getUTCMilliseconds()
Returns the milliseconds in the specified date according to universal time.
Try the following example.
<html> <head> <title>JavaScript getUTCMilliseconds Method</title> </head> <body> <script type="text/javascript"> var dt = new Date(); document.write("getUTCMilliseconds() : " + dt.getUTCMilliseconds() ); </script> </body> </html>
getUTCMilliseconds() : 206