Coding / Programming Videos

Post your favorite coding videos and share them with others!

The JavaScript Date Object

In this tutorial, you’ll learn about the JavaScript Date Object and how you can use it to get the time and date.

A lot of programming languages provide you with convenient, in-built functions which tell you the current date and time. In JavaScript it’s a little more complex.

You first of all need to construct a new date object using the new keyword that you learnt about in the previous JavaScript essentials lesson on Classes.

Once you have create a JavaScript date object, you need to access the various built-in functions of the object to extract the information you need, for example the hours minutes and seconds of the time or the current date.

At the end of the tutorial, we’ll wrap up by talking about JavaScript timestamps which is a large, whole number which represents the number of milliseconds that have passed since the Unix epoch.

JavaScript Crash Course Getting started
JavaScript Using the console
Working with JavaScript variables
JavaScript Data Types
JavaScript Booleans
Converting between strings and numbers in JavaScript
Working with strings in JavaScript
Working with numbers in JavaScript
Template literals
Working with arrays in JavaScript
Working with objects in JavaScript
JavaScript if statements
JavaScript Boolean Expressions
JavaScript Logical Operators
JavaScript For / While Loops
JavaScript Using Loops with Arrays
JavaScript Switch Statments
JavaScript Functions 
JavaScript Anonymous Functions
JavaScript Classes
The JavaScript Date Object
JavaScript Variable Scope
JavaScript Array Functions
JavaScript Regular Expressions
JavaScript Error Handling
Where Next?

JavaScript Crash Course For Beginners


Leave a Reply

Please Login to comment
Notify of
Translate »