JS TutorialJavascript-HomeJavascript-IntroductionJavaScript-File-UseJavascript-Output-ExampleJavaScript CommentJavaScript VariableJavaScript OperatorJavaScript ConsoleJavaScript StringJavaScript string splitJavaScript string sliceJavascript trim whitespaceJavaScript string indexOf methodJavaScript string lastIndexOf methodJavaScript DateJavascript conditional statement
Javascript Date get method
Javascript Date get method used to get particular part of date from Date object
getDate() method
getDate method return date form Date object , date value start from 1-31
Example
JavaScript getDay() method
getDay() method return day of wee k in index from 0-6
| Week Day | sunday | monday | tuesday | wednesday | thursday | friday | saturday |
| Index | 0 | 1 | 2 | 3 | 4 | 5 | 6 |
Example
JavaScript getMonth() method
getMonth method return index of month from 0 - 11
| Month Name | January | Febuary | March | ........ | December |
| Index | 0 | 1 | 2 | ....... | 11 |
Example
JavaScript getFullYear() method
getFullYear() method return four digit number
Example
JavaScript getHours() method
getHours method return hours from date 0-23
Example
JavaScript getMinutes() method
getMinutes() method return minutes from 0-59
Example
JavaScript getSecond() method
getSecond() method return second from 0-59
Example
JavaScript getMIlisecond() method
getMilliSecond() method return millisecond from 0-999
Example
JavaScript getTime() method
getTime() method return time in millisecond
Example
JavaScript getTimeZoneOffset() method
getTimeZoneOffset() return timezone of your system i.e timezone that set in your system


