About 5,070,000 results
Open links in new tab
  1. TO_DATE function in ORACLE - Stack Overflow

    Jan 1, 2015 · 0 Oracle TO_DATE: is used to convert a character string to a date format. and related to your concern; you need to alter your session like below: alter session set …

  2. Use TO_DATE in SQL Server 2012 - Stack Overflow

    Nov 9, 2011 · TO_DATE () isn't a valid function in SQL Server (T-SQL) The alternatives depend on what version of SQL Server you are using CAST () or CONVERT () may be used in any …

  3. t sql - Sql Server string to date conversion - Stack Overflow

    Oct 16, 2008 · 10 For this problem the best solution I use is to have a CLR function in Sql Server 2005 that uses one of DateTime.Parse or ParseExact function to return the DateTime value …

  4. What exactly does TO_DATE return [closed] - Stack Overflow

    Dec 27, 2023 · I'm coming from SQL Server world, and I'm struggling a little with dates conversion in Oracle. I have a table with a DATE column. I'm trying to return rows from a contracts table …

  5. str_to_date function in sql server? - Stack Overflow

    MySQL has a function called STR_TO_DATE, that converts a string to date. Question: Is there a similar function in SQL Server?

  6. 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 SELECT CAST('01/08/2014' AS DATE) But that does the …

  7. sql - Can TO_DATE function return a TIMESTAMP? - Stack Overflow

    Jul 11, 2019 · 0 You convert between date and timestamp values using cast. However I am not sure what your starting datatype is, or why you need to_date() specifically to return a timestamp.

  8. How to convert to_date () SQL Function to T-SQL? [duplicate]

    Apr 10, 2018 · I have a query for Oracle data which has TO_DATE('01-JAN-2017', 'DD-MON-YYYY') in it. I need to run the same query on SQL Server, but I am facing a problem since the …

  9. Convert date from String to Date format in Dataframes

    Nov 23, 2016 · I am trying to convert a column which is in String format to Date format using the to_date function but its returning Null values. df.createOrReplaceTempView ("incidents") …

  10. How to convert a string to date in MySQL? - Stack Overflow

    Dec 31, 2011 · The STR_TO_DATE() function may return a DATE , TIME, or DATETIME value based on the input and format strings. If the input string is illegal, the STR_TO_DATE() …