About 3,800,000 results
Open links in new tab
  1. Convert Datetime to String in a Specified Format in SQL Server

    In this tutorial, you will learn how to convert datetime to string in a specified format in SQL Server by using the CONVERT() function.

  2. How to convert a datetime to string in T-SQL - Stack Overflow

    Feb 22, 2013 · You can use the convert statement in Microsoft SQL Server to convert a date to a string. An example of the syntax used would be: SELECT convert(varchar(20), getdate(), 120)

  3. SQL Server CONVERT() Function - W3Schools

    The CONVERT () function converts a value (of any type) into a specified datatype. Tip: Also look at the CAST () function. Required. The datatype to convert expression to.

  4. CONVERT() from Date/Time to String Examples in SQL Server - Database

    Jun 6, 2018 · This article contains examples of the various styles you can return when converting a date/time value to a string using the CONVERT() function in SQL Server. The default style …

  5. SQL Date Format Examples using CONVERT Function - SQL Server

    Dec 30, 2022 · SQL dates and times are not always formatted properly from the output of a query. The first option is to format the data in the application itself. A second option is to use the built …

  6. SQL Server Convert Datetime to String - DatabaseFAQs.com

    Jun 22, 2021 · In this SQL Server tutorial, we will learn How to convert Datetime datatype to String in SQL Server, Different SQL Server convert DateTime to string examples, and cover …

  7. How to Use the CONVERT() Function for DateTime Conversion in MS SQL Server?

    Oct 2, 2024 · Example 1: Converting a Date to String. To convert a DateTime to a string with a specific format: SELECT CONVERT(VARCHAR(50), OriginalDate, 120) AS FormattedDate …

  8. SQL convert date to string

    In SQL Server, converting a date to a string involves using the CONVERT or FORMAT functions. These functions allow you to customize the output format of the date according to your …

  9. SQL Query to Convert Datetime to String - GeeksforGeeks

    Oct 25, 2021 · In order to convert a DateTime to a string, we can use CONVERT() and CAST() function. These functions are used to converts a value(of any datatype) into a specified …

  10. SQL Convert Date to String Functions: CAST() and TO_CHAR() - SQL

    Jul 21, 2018 · This tutorial shows you how to use the CAST () and TO_CHAR () functions to convert a date to a string in SQL.

  11. Some results have been removed
Refresh