PHP - Online Exam Test Papers | PHP - MCQs[multiple choice questions and answers ] | PHP - Mock Test Papers | PHP - Practice Papers | PHP - Sample Test Papers |

Question:
To create an object and set the date to JUNE 22, 2013, which one of the following statement should be executed?

1.$date = Date(“22 JUNE 2013”)

2.$date = new Date(“JUNE 22 2013”)

3.$date = DateTime(“22 JUNE 2013”)

4.$date = new DateTime(“22 JUNE 2013”)

Posted Date:-2021-07-09 11:09:51


More MCQS Questions and answers

Search