JavaScript for beginners - Chapter 14 - Data types Part 16 - Date Methods

preview_player
Показать описание
Date datatype methods :
Date() : Returns current date and time
getDate() : Returns numeric day (1 - 31) of the specified date.
getDay() : Returns the day of the week (0 - 6) for the specified date.
getFullYear() : Returns four digit year of the specified date.
getHours() : Returns the hour (0 - 23) in the specified date.
getMilliseconds() : Returns the milliseconds (0 - 999) in the specified date.
getMinutes() : Returns the minutes (0 - 59) in the specified date.
getMonth() : Returns the month (0 - 11) in the specified date.
getSeconds() : Returns the seconds (0 - 59) in the specified date.
setDate() : Sets the day as number in the date object.
setHours() : Sets the hours as number in the date object. Optionally set minutes, seconds and milliseconds.
setMilliseconds() : Sets the milliseconds as number in the date object.
setMinutes() : Sets the minutes as number in the date object. Optionally set seconds & milliseconds.
setMonth() : Sets the month as number in the date object. Optionally set date.
setSeconds() : Sets the seconds as number in the date object. Optionally set milliseconds.

ankpro
ankpro training
C#
C sharp
Bangalore
Rajajinagar
Selenium
Coded UI
Mobile automation testing
Mobile testing
JQuery
JavaScript
.Net
Components of the .Net framework
Рекомендации по теме