Which method is simply an object-oriented version of date()?
(a) DateTime::format()
(b) DateTime::modify()
(c) DateTime::setTime()
(d) DateTime::setDate()
The question was posed to me during an online exam.
I want to ask this question from Working with Dates topic in division File and Session Handling in PHP of PHP