About 1,490,000 results
Open links in new tab
  1. CAST and CONVERT (Transact-SQL) - SQL Server | Microsoft Learn

    Starting with GETDATE() values, this example displays the current date and time, uses CAST to change the current date and time to a character data type, and then uses CONVERT to …

  2. SQL Date Format Examples using CONVERT Function

    Sep 26, 2025 · When querying SQL Server data, dates and times may not always be formatted the way you want. In this article, we look at how to use the SQL CONVERT function to format …

  3. SQL Server CONVERT () Function - W3Schools

    Example Convert an expression from one data type to another (varchar): SELECT CONVERT(varchar, '2017-08-25', 101); Try it Yourself » Previous SQL Server Functions Next

  4. List of Date Formats Available with CONVERT () in SQL Server

    Jan 12, 2021 · These formats are provided as an optional third argument when calling the CONVERT() function. They’re provided as an integer expression that specifies how the …

  5. SQL Server Date Formatting - SQL Server Guides

    Jun 10, 2025 · In this comprehensive article, I’ll walk you through everything you need to know about SQL Server date formatting—from basic conversions to advanced techniques, followed …

  6. SQL Query to Convert DateTime to Date in SQL Server

    Jul 23, 2025 · In this article, we will explain how to convert DateTime to Date in SQL Server using four powerful methods: CAST (), CONVERT (), TRY_CONVERT (), and SUBSTRING ().

  7. SQL DATE Format using Convert, Format Functions - Tutorial …

    We will write different Date format Queries for this demonstration using CONVERT and FORMAT functions. The CONVERT function provides different styles to format date and time. ODBC is …

  8. How to Use the CONVERT () Function for DateTime Conversion in MS SQL

    Oct 2, 2024 · The CONVERT() function in MS SQL Server is a powerful tool for converting data types, especially when it comes to date and time formats. In this guide we will explore the …

  9. date (Transact-SQL) - SQL Server | Microsoft Learn

    dd is two digits from 01 to 31, depending on the month, which represents a day of the specified month. This value is used for the appended date part for implicit conversion from time to …

  10. SQL Convert Examples for Dates, Integers, Strings and more

    May 28, 2024 · In this article, we look at how to use the SQL CONVERT function to convert between data types such as date, integers, strings, and more.