JavaScript Essentials: The Date Object

Veröffentlicht am: 15 April 2019
auf dem Kanal: Code With Bubb
684
24

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. Channel Handle @codebubb


Auf dieser Seite können Sie das Online-Video JavaScript Essentials: The Date Object mit der Dauer stunde minuten sekunde in guter Qualität ansehen, das der Benutzer Code With Bubb 15 April 2019 hochgeladen hat, den Link mit Freunden und Bekannten teilen, dieses Video wurde auf Youtube bereits 684 Mal angesehen und es wurde von 24 den Zuschauern gefallen. Viel Spaß beim Betrachtenden Zuschauern gefallen!