About 7,250,000 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. 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.

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

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

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

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