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, 718🔥, 0💬
Popular Posts:
What Is an Oracle Tablespace in Oracle? An Oracle tablespace is a big unit of logical storage in an ...
How To Verify Your PHP Installation in MySQL? PHP provides two execution interfaces: Command Line In...
What Happens If the Imported Table Already Exists in Oracle? If the import process tries to import a...
How To Convert Numeric Values to Character Strings in MySQL? You can convert numeric values to chara...
Why I Can Not Enter 0.001 Second in DATETIME values in SQL Server Transact-SQL? If you enter millise...