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, 912🔥, 0💬
Popular Posts:
What is test testing area for? The testing area is provided to allow visitors to post testing commen...
What Happens If the UPDATE Subquery Returns Multiple Rows in SQL Server? If a subquery is used in a ...
How to download and install SQL Server 2005 Sample Scripts in SQL Server? If you want to learn from ...
How To Verify a User name with SQLCMD Tool in SQL Server? The quickest way to verify a user name in ...
Where to find answers to frequently asked questions on Storage Engines: MyISAM, InnoDB and BDB in My...