About 17,700 results
Open links in new tab
  1. DATENAME (Transact-SQL) - SQL Server | Microsoft Learn

    Oct 30, 2007 · In SQL Server, DATENAME implicitly casts string literals as a datetime2 type. In other words, DATENAME does not support the format YDM when the date is passed as a string.

  2. SQL DATENAME Function Use and Examples - SQL Server Tips

    Apr 28, 2025 · Learn how to use the SQL Server DATENAME function to return a specific part of a date such as day, hour, month, etc.

  3. SQL Server DATENAME () Function - TutorialsTeacher.com

    In SQL Server, the DATENAME () function returns a string that represents the specified datepart of a given date.

  4. SQL Server DATENAME () Function - W3Schools

    Aug 25, 2017 · Definition and Usage The DATENAME () function returns a specified part of a date. This function returns the result as a string value. Syntax DATENAME (interval, date)

  5. SQL DATENAME Function - Tutorial Gateway

    SQL DATENAME function extract or display specified date part from existing date. This SQL DATENAME function always return String as a output.

  6. DATENAME () Examples in SQL Server - Database.Guide

    Jun 2, 2018 · In SQL Server, the T-SQL DATENAME() function returns a character string that represents the specified datepart of the specified date. For example, you can pass in 2021-01-07 and have SQL …

  7. SQL - DATENAME () Function - Online Tutorials Library

    The SQL DATENAME () function is an in-built function in SQL that is used to extract and return a particular segment (as a character string) of a date or time value, such as day of the week, month, …

  8. DATENAME Function - SQL Notebook

    DATENAME Function Returns a human-readable text string representing the specified part of a date. Month and day names (like "January" and "Monday") are returned according to the local computer's …

  9. SQL Server DATENAME () Function

    Learn how to use the SQL Server DATENAME () function to get a character string that represents a specified date part of a date.

  10. SQL Server: DATENAME Function - TechOnTheNet

    This SQL Server tutorial explains how to use the DATENAME function in SQL Server (Transact-SQL) with syntax and examples. In SQL Server (Transact-SQL), the DATENAME function returns a …