Q. Which of the following functions will return the current date in 'YYYY-MM-DD' format?
β
Correct Answer: (A)
date('Y-m-d')
Explanation: date('Y-m-d') returns the date in the format year-month-day.