JavaScript Basics
JavaScript Objects
JavaScript Advanced
JS Useful References
JS Useful Resources
Selected Reading
© 2011 TutorialsPoint.COM
|
Javascript Date getMilliseconds() Method
Description:
Javascript date getMilliseconds() method returns the milliseconds in the specified date according to local time. The value returned by getMilliseconds is a number between 0 and 999.
Syntax:
Here is the detail of parameters:
Return Value:
Returns the milliseconds in the specified date according to local time.
Example:
<html>
<head>
<title>JavaScript getMilliseconds Method</title>
</head>
<body>
<script type="text/javascript">
var dt = new Date( );
document.write("getMilliseconds() : " + dt.getMilliseconds() );
</script>
</body>
</html>
|
This will produce following result:
To understand it in better way you can Try it yourself.
|
|
|