About 2,720,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. 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 …

  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 …

  4. 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, format)

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

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

  8. SQL convert string to date

    In SQL Server, you can convert a string to a date using the CONVERT function or the CAST function. The format for converting a string to a date depends on the input string’s format.

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

  10. How Do You Cast a String to Date in SQL?

    Learn how to cast string to date in SQL with easy-to-follow examples and best practices. Understand different SQL functions for date conversion to improve your database queries.