Computer Science, asked by monikaaswal4710, 1 year ago

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 Anonymous
1
______✨ HEY MATE ✨______

➡️ Option (C) $date = new DateTime(); is the right answer ✔️

<marquee>✌️ I THINK IT HELPED YOU ✌️
Answered by vamritaeunameun
0

C.$date = new DateTime(); is right answer

Similar questions