- Trending Categories
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
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
Found 693 Articles for Front End Scripts

Updated on 25-Jun-2020 11:34:20
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The getSeconds() function of the Date object returns the seconds of its current date.SyntaxIts syntax is as followsdateObj.getSeconds();Example Live Demo JavaScript Example ... Read More 
Updated on 25-Jun-2020 11:34:55
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The getMonth() function of the Date object returns the moth (0 represents January and so on...) of its current date.SyntaxIts syntax is as followsdateObj.getMonth();Example Live Demo JavaScript Example ... Read More 
Updated on 25-Jun-2020 10:29:26
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The getMinutes() function of the Date object returns the minutes of its current date.SyntaxIts syntax is as followsdateObj.getMinutes();Example Live Demo JavaScript Example ... Read More 
Updated on 25-Jun-2020 10:30:06
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The getMilliseconds() function of the Date object returns the milliseconds of its current date.SyntaxIts syntax is as followsdateObj.getMilliseconds();Example Live Demo JavaScript Example ... Read More 
Updated on 25-Jun-2020 10:30:40
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The getHours() function of the Date object accepts the date in string format and returns the hour of the current day.SyntaxIts syntax is as followsdateObj.getHours();Example Live Demo JavaScript Example ... Read More 
Updated on 25-Jun-2020 10:31:12
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The getFullYear() function of the Date object returns the year in the specified date.The value returned by getFullYear() is an absolute number. For dates between the years 1000 and 9999, ... Read More 
Updated on 25-Jun-2020 10:31:51
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The getDay() function of the Date object returns the number representing day of the week of its current date (0 represents Sunday and so on).SyntaxIts syntax is as followsdateObj.getDay();Example Live Demo ... Read More 
Updated on 25-Jun-2020 10:32:23
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The getDate() function of the date object returns the day of the month of its current date.SyntaxIts syntax is as followsdateObj.getDate();Example Live Demo JavaScript Example ... Read More 
Updated on 25-Jun-2020 10:32:49
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The parse() function accepts the date in string format and parses it and calculates the total milliseconds since 1st January 1970 and returns it.SyntaxIts syntax is as followsDate.parse();Example Live Demo ... Read More 
Updated on 25-Jun-2020 10:33:22
The Date object is a data type built into the JavaScript language. Date objects are created with the new Date( ) as shown below.Once a Date object is created, a number of methods allow you to operate on it. Most methods simply allow you to get and set the year, month, day, hour, minute, second, and millisecond fields of the object, using either local time or UTC (universal, or GMT) time.The now() function of the Date object returns the number of milliseconds since 1st Jan 1970.SyntaxIts syntax is as followsDate.now();Example Live Demo JavaScript Example ... Read More Advertisements