Found 693 Articles for Front End Scripts

Date.setDate() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 11:49:10
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 setDate() function of the date object accepts an integer representing the day of the month and modifies/replaces the current date with it.SyntaxIts Syntax is as followsdateObj.setDate(5);Example Live Demo   ... Read More

Date.getUTCSeconds() function in JavaScript

Samual Sam
Updated on 25-Jun-2020 11:49:53
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 getUTCSeconds() function of the Date object returns the seconds in the given date according to the universal time.SyntaxIts Syntax is as followsdateObj.getUTCSeconds();Example Live Demo    JavaScript Example ... Read More

Date.getUTCMonth() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 11:50:40
The Date object is a datatype 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 getUTCMonth() function of the Date object returns the month of the given date according to the universal time (0 represents January and so on...).SyntaxIts Syntax is as followsdateObj.getUTCMonth();Example Live Demo ... Read More

Date.getUTCMinutes() function in JavaScript

Samual Sam
Updated on 25-Jun-2020 11:35:32
The Date object is a datatype 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 getUTCMinutes() function of the Date object returns the milliseconds in the given date according to the universal time.SyntaxIts Syntax is as followsdateObj.getUTCMinutes();Example Live Demo    JavaScript Example   ... Read More

Date.getUTCMilliseconds() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 11:36:41
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 getUTCMilliseconds() function of the Date object returns the milliseconds in the given date according to the universal time.SyntaxIts Syntax is as followsdateObj.getUTCMilliseconds();Example Live Demo    JavaScript Example ... Read More

Date.getUTCHours() function in JavaScript

Samual Sam
Updated on 25-Jun-2020 11:37:35
The Date object is a datatype 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 getUTCHours() function of the Date object returns the hours in the given date according to the universal time.SyntaxIts Syntax is as followsdateObj.getUTCHours();Example Live Demo    JavaScript Example   ... Read More

Date.getUTCFullYear() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 11:38:03
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 getUTCFullYear() function of the Date object returns the full year of its current date according to the universal time.SyntaxIts Syntax is as followsdateObj.getUTCFullYear();Example Live Demo    JavaScript Example ... Read More

Date.getUTCDay() function in JavaScript

Samual Sam
Updated on 25-Jun-2020 11:38:48
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 getUTCDay() function of the Date object returns the day of the week of its current date according to the universal time. (0 represents Sunday and so on...)SyntaxIts Syntax is ... Read More

Date.getUTCDate() function in JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 11:39: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 getUTCDate() function of the Date object returns the day of the month of its current date according to the universal time.SyntaxIts Syntax is as followsdateObj.getUTCDate();Example Live Demo    JavaScript ... Read More

Date.getTime() function JavaScript

karthikeya Boyini
Updated on 25-Jun-2020 11:33:35
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.JavaScript date getTime() method returns the numeric value corresponding to the time for the specified date according to universal time. The value returned by the getTime method is the number ... Read More
Advertisements