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

    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 …

  4. 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 functions available. …

  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. 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 Server is a …

  8. 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 type to another. …

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

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

  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.