A

Admin • 802.91K Points
Coach

Q. Which of the following functions will return the current date in 'YYYY-MM-DD' format?

  • (A) date('Y-m-d')
  • (B) date('y-m-d')
  • (C) getdate()
  • (D) current_date()
  • Correct Answer - Option(A)
  • Views: 5
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
date('Y-m-d') returns the date in the format year-month-day.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.