About 571,000 results
Open links in new tab
  1. Convert Date format into DD/MMM/YYYY format in SQL Server

    Jun 25, 2013 · I have a query in SQL, I have to get a date in a format of dd/mm/yy Example: 25/jun/2013. How can I convert it for SQL server?

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

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

    Oct 16, 2008 · SQL Server (2005, 2000, 7.0) does not have any flexible, or even non-flexible, way of taking an arbitrarily structured datetime in string format and converting it to the datetime …

  4. How to convert a "dd/mm/yyyy" string to datetime in SQL Server?

    May 6, 2010 · I've got a similar situation where the date is being held as a string in a UK format with slashes on SQL 2012 (dd/mm/yyyy). The only thing which works for me is CONVERT …

  5. How to return only the Date from a SQL Server DateTime datatype

    Sep 22, 2008 · The datetime data type cannot have no time at all. I think you are confusing data storage with user presentation. If all you want is a way to show a user a string that has no time …

  6. sql - How to convert datetime to date only (with time set to …

    I have a string '2009-06-24 09:52:43.000', which I need to insert to a DateTime column of a table. But I don't care about the time, just want to insert it as 2009-06-24 00:00:00.000 How can I do ...

  7. Convert a SQL Server datetime to a shorter date format

    Oct 27, 2010 · 90 I have a datetime column in SQL Server that gives me data like this 10/27/2010 12:57:49 pm and I want to query this column but just have SQL Server return the day month …

  8. Custom Date/Time formatting in SQL Server - Stack Overflow

    sql sql-server datetime stored-procedures sql-convert edited Oct 14, 2008 at 19:35 Cade Roux 90.1k 42 186 268

  9. How to convert a datetime to string in T-SQL - Stack Overflow

    19 In addition to the CAST and CONVERT functions in the previous answers, if you are using SQL Server 2012 and above you use the FORMAT function to convert a DATETIME based …

  10. How to convert from one date format to another, in Microsoft SQL …

    The source date (date in 101 format) is stored as a varchar initially, so I am guessing you would first need to convert it to a date type before changing it's format. So practically my question is, …