About 1,210,000 results
Open links in new tab
  1. Use TO_DATE in SQL Server 2012 - Stack Overflow

    Nov 9, 2011 · How to convert to_date() SQL Function to T-SQL? 223. Sql Server string to date conversion. 0.

  2. TO_DATE function in ORACLE - Stack Overflow

    Jan 26, 2017 · 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 nls_date_format='DD-MM-YYYY' in your apps right after the connect. So now if you run again your query : SELECT TO_DATE ('01-01-2015', 'DD-MM-YYYY') FROM DUAL; the result …

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

    Jan 8, 2014 · TO_DATE function in oracle is used to convert any character to date format. for example : SELECT to_date ('2019/03/01', 'yyyy/mm/dd') FROM dual; CONVERT function in SQL SERVER is used to converts an expression from one datatype to another datatype. for example: SELECT CONVERT(datetime, '01/08/2014', 103) date_convert; I hope this will help you.

  4. sql - What is difference between TO_CHAR and TO_DATE - Stack …

    Feb 4, 2016 · select TO_DATE(SYSDATE, 'DD-MON-YYYY HH:MI:SS PM') from dual; It displays date with default time 12:00:00 AM. I do not understand TO_CHAR and TO_DATE usage. How to display date with exact time by using TO_DATE

  5. oracle database - to_date function with sysdate - Stack Overflow

    Jan 1, 2013 · Your example query is inappropriate as to_date function takes first parameter as String not date. Try the simple query below: select TO_CHAR(sysdate, 'DAY') FROM DUAL; This should return TUESDAY as output.

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

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

    Oct 15, 2008 · In SQL Server 2012 and better you can use this function: SELECT DATEFROMPARTS(2013, 8, 19); Here's how I ended up extracting the parts of the date to put into this function: select DATEFROMPARTS(right(cms.projectedInstallDate,4),left(cms.ProjectedInstallDate,2),right( …

  8. sql server - Using a variable in TO_DATE function - Stack Overflow

    Apr 1, 2019 · I'm trying to return data from ORACLE via LINKED SERVER using todays date in the where clause. Code: DECLARE @var_date char(10) SET @var_date = (SELECT CONVERT(DATE,GETDATE())) SELECT TOP(25) * FROM OPENQUERY (OPICS, 'SELECT CASE WHEN OPICS.FXDH.BR = 10 THEN ''Botswana'' WHEN OPICS.FXDH.BR = 20 THEN …

  9. sql - How do I use select with date condition? - Stack Overflow

    Jan 20, 2009 · I always get the filter date into a datetime, with no time (time= 00:00:00.000) DECLARE @FilterDate datetime --final destination, will not have any time on it DECLARE @GivenDateD datetime --if you're given a datetime DECLARE @GivenDateS char(23) --if you're given a string, it can be any valid date format, not just the yyyy/mm/dd hh:mm:ss.mmm that I'm …

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

    Jul 11, 2019 · Example : I have the following input: '2019-05-31 13:15:25.000000000' I want to have '2019-05-31 13:15:25' as a result using to_date and not Skip to main content Stack Overflow

Refresh