Collections:
DAYNAME() - Name of Weekday
How to obtain the name of weekday of a given date using the DAYNAME() function?
✍: FYIcenter.com
DAYNAME(date) is a MySQL built-in function that
returns the name of weekday from a given date.
For example:
SELECT DAYNAME('2023-02-03'), DAYNAME(NOW());
-- +-----------------------+----------------+
-- | DAYNAME('2023-02-03') | DAYNAME(NOW()) |
-- +-----------------------+----------------+
-- | Friday | Tuesday |
-- +-----------------------+----------------+
Reference information of the DAYNAME() function:
DAYNAME(date): str Returns the name of the weekday for date. The language used for the name is controlled by the value of the lc_time_names system variable. Arguments, return value and availability: date: Required. The date to extract the name of weekday from. str: Return value. The name of weekday. Available since MySQL 4.
⇐ DAY() - Synonym for DAYOFMONTH()
2023-11-16, 1102🔥, 0💬
Popular Posts:
How To Convert Binary Strings into Integers in SQL Server Transact-SQL? Binary strings and integers ...
How To Convert Characters to Numbers in Oracle? You can convert characters to numbers by using the T...
How To Create a Table Index in Oracle? If you have a table with a lots of rows, and you know that on...
What Is Transport Network Substrate (TNS) in Oracle? TNS, Transport Network Substrate, is a foundati...
Where to find answers to frequently asked questions on Managing Security, Login and User in SQL Serv...