Skip to main contentSkip to solution

Which of the following statements are correct with respect to NOW() and DATE()?

(A) NOW() returns the current system date

(B) NOW() returns the current system date and time

(C) DATE() returns the date part from the given date

(D) DATE() returns the current system date

Solution

✅ Correct Option: 2

NOW() returns both the current system date and time, so (B) is correct. DATE(expr) extracts only the date part from a given date or datetime value, so (C) is correct. For example, DATE(’2024-05-10 14:30:00’)\text{DATE('2024-05-10 14:30:00')} gives 2024-05-10\text{2024-05-10}.


(A): This describes CURDATE(), not NOW(), because NOW() also includes the time.

(D): DATE() needs an argument to work on. It does not fetch the current date by itself, but CURDATE() or DATE(NOW()) does.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question