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()
πŸ’¬ Discuss
βœ… Correct Answer: (A) date('Y-m-d')
Explanation: date('Y-m-d') returns the date in the format year-month-day.
Explanation by: Rati Dubey
date('Y-m-d') returns the date in the format year-month-day.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
70
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
87%
Success Rate