About 16,700,000 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

    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 …

  3. 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 (), TRY_CONVERT () and TRY_PARSE () to convert a string to a …

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

    Missing:
    • text
    Must include:
  5. sql - Convert string to date in specific format - Stack Overflow

    Jan 8, 2014 · How do I convert a string to a date type in SQL Server 2008 R2? My string is formatted dd/mm/yyyy. I tried this. But that does the cast in mm/dd/yyyy format. Take a look at …

  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, integers, strings, and more.

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

  8. SQL Convert Text to Date, Number & String | Cross-Platform Guide

    Nov 20, 2025 · Master SQL data type conversions across SQL Server, MySQL, and PostgreSQL. Learn CAST, CONVERT, STR_TO_DATE, performance tips, and error handling for text to …

  9. SQL convert string to date

    This example demonstrates how to use the CAST function to convert a string to a date. The CAST function is generally simpler and more concise but may be less flexible than the CONVERT …

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

    Missing:
    • text
    Must include: