About 102,000 results
Open links in new tab
  1. SQL Server CONVERT () Function - W3Schools

    Example Convert an expression from one data type to another (datetime): SELECT CONVERT(datetime, '2017-08-25'); Try it Yourself »

  2. 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 display the date and …

  3. SQL Date Format Examples using CONVERT Function

    Sep 26, 2025 · Learn how to use SQL CONVERT for different SQL date format options and achieve the desired date representation.

  4. 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 ().

  5. SQL Server Date Formatting

    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 by the best …

  6. When to Use CONVERT () vs CAST () for Date Formatting in SQL Server

    Aug 6, 2025 · When formatting dates in SQL Server you may be wondering whether to use CONVERT() or CAST(). After all, both functions allow us to convert between data types. Let’s take a look at at …

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

    We use the CONVERT & FORMAT functions in SQL Server Date.

  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 CONVERT() …

  9. CONVERTSQL Tutorial

    It’s a powerful function that allows you to handle data type conversions and format the output according to a specified style. The basic syntax of the CONVERT function is as follows: data_type: The target …

  10. Date and time data types and functions (Transact-SQL)

    Transact-SQL derives all system date and time values from the operating system of the computer on which the instance of SQL Server runs. Since SQL Server 2008 (10.0.x), the Database Engine …