Let's learn about SQL date_format function #mysql #quiz #sql #databasesoftware #databasemanagement

preview_player
Показать описание
Let's learn about SQL date_format function
Рекомендации по теме
Комментарии
Автор

<<Parameter>>
date: The date or time value that you want to format. This can be of type DATE, DATETIME, TIMESTAMP, or TIME.

format: A string specifying the format you want to apply. The format string can contain specific format specifiers that represent different parts of the date or time.

<<Common Format Specifiers>>
%Y: Year, numeric, four digits (e.g., 2023)
%y: Year, numeric, two digits (e.g., 23)
%m: Month, numeric (01..12)
%d: Day of the month, numeric (01..31)
%H: Hour (00..23)
%i: Minutes, numeric (00..59)
%s: Seconds (00..59)
%p: AM or PM
%a: Abbreviated weekday name (Sun, Mon, Tue, ...)
%b: Abbreviated month name (Jan, Feb, Mar, ...)
%W: Full weekday name (Sunday, Monday, ...)
%M: Full month name (January, February, ...)

CodeMaster_
visit shbcf.ru