A.  $date = Date(“22 JUNE 2013″)

B.  $date = new Date(“JUNE 22 2013″)

C.  $date = DateTime(“22 JUNE 2013″)

D.  $date = new DateTime(“22 JUNE 2013″)

1
Correct Answer :
$date = new DateTime(“22 JUNE 2013″)
Explanation :

The dateTime() method is class constructor. You can set the date either at the time of instantiation or later by using a variety of mutators.


Interview Questions

MongoDB
Java Script
Node JS
PHP
JQuery
Python