About 38,800 results
Open links in new tab
  1. 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 () function. Syntax CONVERT (data_type (length), expression, style)

  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 datetime data …

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

  4. 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 date format in SQL …

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

    Jul 22, 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 the …

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

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

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

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

    Nov 20, 2025 · Converting between SQL data types—text to dates, numbers to strings, and everything in between—is fundamental database work. Get the syntax right, avoid performance pitfalls, and …

  10. 6 Ways to Convert a String to a Date/Time Value in SQL Server

    Jun 7, 2018 · If you need to convert a string into a date/time value in SQL Server, you have a number of options. In this post I outline six T-SQL functions that allow you to do this.