Which of the following is the right way to use the DateTime class?
A.$date = get_Class(DateTime);
B.$date = class DateTime;
C.$date = new DateTime();
D.$date = new class DateTime();
Answers
Answered by
1
______✨ HEY MATE ✨______
➡️ Option (C) $date = new DateTime(); is the right answer ✔️
➡️ Option (C) $date = new DateTime(); is the right answer ✔️
Answered by
0
C.$date = new DateTime(); is right answer
Similar questions
Math,
7 months ago
Math,
7 months ago
Computer Science,
1 year ago
Computer Science,
1 year ago
Science,
1 year ago