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
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
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, gives .
(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.
Related questions:
2026: 18 May Shift 2
2025: 20 May Shift 1