What do you want to save?
Add Code snippet
New code examples
-
SQL 2021-09-29 08:56:05
get individual date elements in mysql
-- To get the year of a date in mysql SELECT YEAR(NOW()); -- To get the month of a date in mysql SELECT MONTH(NOW()); -- To get the day of a date in mysql SELECT DAY(NOW()); -- To get the hour of a date in mysql SELECT HOUR(NOW()); -- To get the minut... Add solution
Best helpers
Ranking is empty