About 14,700 results
Open links in new tab
  1. SQL Convert String to Date Functions

    This tutorial shows you how to use the CAST () and TO_DATE () to convert a string to a date in SQL.

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

    Jul 20, 2026 · This example displays a date and time as character data, uses CAST to change the character data to the datetime …

  3. SQL Server CONVERT () Function - W3Schools

    Definition and Usage The CONVERT () function converts a value (of any type) into a specified datatype. Tip: Also look at the CAST …

  4. Convert String to Datetime in SQL Server

    In this tutorial, you will learn how to convert a string to a datetime in SQL Server using the CONVERT () and TRY_CONVERT () …

  5. SQL Server functions for converting a String to a Date

    In this article, we will learn about SQL Server convert String to Date functions like CAST (), TRY_CAST (), CONVERT (), …

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

  7. t sql - How to parse string into date? - Stack Overflow

    Sep 30, 2019 · Best way would be to use the "date" data type. If this is user input, this is even worse. Then you should first do some …

  8. sql - Convert string to date in specific format - Stack Overflow

    Jul 22, 2014 · You need the convert function, where you can specify a format code: ... The 103 means dd/mm/yyyy. See the docs.

  9. MySQL STR_TO_DATE () Function - W3Schools

    Definition and Usage The STR_TO_DATE () function returns a date based on a string and a format. Syntax STR_TO_DATE (string, …

  10. SQL Date Format Examples using CONVERT Function

    Jul 15, 2026 · Learn how to use SQL CONVERT for different SQL date format options and achieve the desired date representation.