vadnica-logo
X

JavaScript Date Functions and Properties: Constructor

Date constructor is a basic function for creating date objects in JavaScript. With its help we can create a new date object in several different ways: current date and time, specific date, from timestamp or from a date string. Let's look at different ways of using the constructor below.

EXAMPLE
RESULT

Thank you for visiting! Adding privacy policy.

© 2024 All rights reserved.

Vam je koda pomagala? Če želite podpreti moj trud pri pripravi vodičev in vzdrževanju strani, mi lahko namenite donacijo za kavo.