HOW TO CREATE A DATE OBJECT IN JAVASCRIPT?

Amit Singh

Total Post:565

Points:2825
Posted by  Amit Singh
 1609  View(s)
Ratings:
Rate this:
  1. Amit Singh

    Post:565

    Points:2825
    How to create a Date object in JavaScript?

    We create  a data object in javascript as: 

    dateObjectName = new Date([parameters])

  1. Amit Singh

    Post:565

    Points:2825
    How to create a Date object in JavaScript?

    Create a direct instance of an object forexample:

    dateObjectName = new Date([parameters])

    The syntax for accessing a property of an object is:

    dateObjectName.propertyname

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!