1. DateTime::format()
  2. DateTime::modify()
  3. DateTime::setTime()
  4. DateTime::setDate()
5 views

1 Answers

Answer: Option 1

The format() method is simply an object-oriented version of date(). It takes $dateFormat as an argument. $dateFormat is a string consisting of the same date formatting characters accepted by the procedural date() function.

5 views

Related Questions