About 83,900 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 …

  5. sql server - How to get a date in YYYY-MM-DD format from a …

    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 …

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

    Jan 21, 2020 · It contains dates in varchar(10) that's a serious bug. Dates have no format. Use the correct type eg date or datetime2 and let the client decide how to display them. You simply …

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

    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 …

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

  9. sql - SELECT CONVERT (VARCHAR (10), GETDATE (), 110) what is …

    Apr 26, 2013 · SELECT CONVERT(VARCHAR(10), GETDATE(), 110) AS [MM-DD-YYYY] it works fine, I just want to know the meaning of 110 in above code. what it does actually, …

  10. How to Convert datetime value to yyyymmddhhmmss in SQL server?

    Apr 17, 2014 · 0 This query is to convert the DateTimeOffset into the format yyyyMMddhhss with Offset. I have replaced the hyphens, colon(:), period(.) from the data, and kept the hyphen for …