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, 1442🔥, 0💬
Popular Posts:
What Privilege Is Needed for a User to Delete Rows from Tables in Another Schema in Oracle? For a us...
What Are the Underflow and Overflow Behaviors on FLOAT Literals in SQL Server Transact-SQL? If you e...
How To Get Help Information from the Server in MySQL? While you are at the "mysql>" prompt, y...
How to download and install Microsoft SQL Server Management Studio Express in SQL Server? Microsoft ...
What are binary literals supported in SQL Server Transact-SQL? Binary literals in Transact-SQL are s...