JavaScript setMilliseconds() Method
JavaScript Date Object
Definition and Usage
The setMilliseconds() method sets the milliseconds (from 0 to 999), according to local time.
Note: This method is always used in conjunction with a Date object.
Syntax
| Date.setMilliseconds(millisec) |
| Parameter |
Description |
| millisec |
Required. An integer between 0 and 999 representing the milliseconds |
Browser Support

The setMilliseconds() method is supported in all major browsers.
Example
Example
Set the milliseconds to 192:
<script type="text/javascript">
var d = new Date();
d.setMilliseconds(192);
document.write(d);
</script>
|
Try it yourself »
|
JavaScript Date Object

The Altova MissionKit is an integrated suite of tools ideal for:
- XML development
- Web & Web services development
- Data mapping & integration
- Rendering & publishing XML & database data
- XBRL validation, taxonomy editing, transformation & rendering
The MissionKit for XML Developers includes XMLSpy® - the industry-leading XML editor; MapForce® - a
graphical data mapping, conversion, and integration tool; StyleVision® - a visual XSLT stylesheet designer;
DiffDog® - an XML-aware diff/merge tool; and 2 additional tools.
Try all 6 products free for 30 days!
Download a fully-functional free trial
|
|
|
|