- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
Physics
Chemistry
Biology
Mathematics
English
Economics
Psychology
Social Studies
Fashion Studies
Legal Studies
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Set the milliseconds for a specified date according to universal time.
Javascript date setUTCMilliseconds() method sets the milliseconds for a specified date according to universal time.
The following is the parameter for setUTCMilliseconds(millisecondsValue) −
- millisecondsValue − A number between 0 and 999, representing the milliseconds.
Example
You can try to run the following code to set the milliseconds for a specified date according to universal time −
<html> <head> <title>JavaScript setUTCMilliseconds Method</title> </head> <body> <script> var dt = new Date( "Aug 28, 2008 23:30:00" ); dt.setUTCMilliseconds( 1200 ); document.write( dt ); </script> </body> </html>
- Related Articles
- Set the seconds for a specified date according to universal time.
- Set the minutes for a specified date according to universal time.
- Set the month for a specified date according to universal time.
- Set the hour for a specified date according to universal time?
- Set the full year for a specified date according to universal time.
- Set the day of the month for a specified date according to universal time?
- How to return the day of the week in the specified date according to universal time?
- How to get Time in Milliseconds for the Given date and time in Java?
- Java Program to display date and time in Milliseconds
- How to convert a date to a string using the universal time convention?
- Display entire date time with milliseconds in Java
- How to set default date time as system date time in MySQL?
- Java Program to convert Date into milliseconds
- Program to convert Milliseconds to Date Format in Java
- How to convert milliseconds to date format in Android?

Advertisements