About 54,800 results
Open links in new tab
  1. sql - How to convert DateTime to VarChar - Stack Overflow

    I need to convert a value which is in a DateTime variable into a varchar variable formatted as yyyy-mm-dd format (without time part). How do I do that?

  2. SQL Server - How to convert varchar to date - Stack Overflow

    Jul 8, 2018 · So is that StartDate column a varchar in the table? Because DATE or DATETIME is internally stored without format. It's just depends on settings how a date/datetime/datetime2 is …

  3. SQL Server Convert Varchar to Datetime - Stack Overflow

    Jan 30, 2013 · I have this date format: 2011-09-28 18:01:00 (in varchar), and I want to convert it to datetime changing to this format 28-09-2011 18:01:00. How can I do it?

  4. Convert varchar into datetime in SQL Server - Stack Overflow

    OP wants mmddyyyy; select convert (datetime,'12312009') -->>>_Msg 242, Level 16, State 3, Line 1 The conversion of a char data type to a datetime data type resulted in an out-of-range datetime value.

  5. sql - Convertir VARCHAR a DATE en un SELECT - Stack Overflow en …

    Esta consulta : SELECT * FROM fechas_20171115 WHERE CONVERT (datetime, fecha_var, 103) = '01/01/2017'; Traerá los datos, pero dará el siguiente error: The conversion of a varchar data type to …

  6. Converter varchar em date no SQL - Stack Overflow em Português

    Jun 1, 2017 · Tem como converter datas em varchar para date. Estou tendo dificuldades em realizar buscas entre datas, devido a esta discrepância no banco de dados onde realizo a consulta. Quando …

  7. T SQL How to convert Varchar to Date - Stack Overflow

    Jan 21, 2020 · I'm using MS SQL Server 2016. I have a field 'MyDate' in table 'MyTable'. It contains dates in varchar(10) in the format dd/mm/yyyy e.g. 21/01/2020 How do I convert these to SQL …

  8. sql server - SQL - The conversion of a varchar data type to a datetime ...

    Dec 30, 2013 · I simply converted the varchar field that I wanted to convert into a new table (with a DateTime filed) to a DateTime compatible layout first and then SQL will do the conversion from …

  9. sql server convert date to string MM/DD/YYYY - Stack Overflow

    I am using SQL Server 2008. I have the following: select convert (varchar (20),fmdate) from Sery How do I convert the date to string such that it show as MM/DD/YYYY

  10. sql server - How to get a date in YYYY-MM-DD format from a TSQL ...

    Feb 22, 2017 · How do I retrieve a date from SQL Server in YYYY-MM-DD format? I need this to work with SQL Server 2000 and up. Is there a simple way to perform this in SQL Server or would it be …