About 251,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. 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.

  3. CAST and CONVERT (Transact-SQL) - SQL Server | Microsoft Learn

    This example displays a date and time as character data, uses CAST to change the character data to the datetime data type, and then uses CONVERT to change the character data to the …

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

  6. 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 …

  7. How to Extract Date from Datetime in SQL

    Jan 21, 2025 · Summary: in this tutorial, you’ll learn to extract a date from a datetime value in SQL using the CAST, CONVERT, and DATE functions. The CAST function casts a value of one …

  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. 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.

  10. How to Convert VARCHAR to Date in SQL Server

    Jul 24, 2025 · In this comprehensive article, I’ll walk you through everything you need to know about converting VARCHAR to DATE in SQL Server with real-time examples. When working …