About 242,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

    Sep 3, 2024 · 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 …

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

    Jan 12, 2021 · The following table contains a list of the date formats that you can provide to the CONVERT() function when you convert a date/time value to a string. These formats are …

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

    Jul 23, 2025 · Here are four common and effective methods to convert DateTime to Date in SQL Server: 1. Using CAST () The CAST () function in SQL Server is one of the most flexible …

  6. How To Convert Date To String In SQL Server

    Jun 11, 2025 · In this comprehensive article, I’ll walk you through everything you need to know about converting dates to strings in SQL Server.

  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 · In SQL Server, date and time management is essential for various applications, ranging from logging transactions to scheduling tasks. The CONVERT() function in MS SQL …

  9. SQL Convert Date functions and formats

    Apr 3, 2019 · We have the following SQL convert date and Time data types in SQL Server. In SQL Server, we have used built-in functions such as SQL GETDATE () and GetUTCDate () to …

  10. CONVERTSQL Tutorial

    The SQL CONVERT function is used to convert an expression from one data type to another. It’s a powerful function that allows you to handle data type conversions and format the output …