About 300,000 results
Open links in new tab
  1. 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 portion (not …

  2. sql - How to convert datetime to date only (with time set to 00:00:00 ...

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

  3. sql - Get Hours and Minutes (HH:MM) from date - Stack Overflow

    Jan 17, 2013 · 0 Here is syntax for showing hours and minutes for a field coming out of a SELECT statement. In this example, the SQL field is named "UpdatedOnAt" and is a DateTime. Tested with …

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

  5. How to select date without time in SQL - Stack Overflow

    Feb 26, 2011 · It seems to combine the SQL Server T-SQL GetDate() with the Oracle PL/SQL TO_DATE(). If it did work, it appears to involve an unnecessary date/time to text to date conversion, …

  6. sql - how to convert date to a format `mm/dd/yyyy` - Stack Overflow

    Sep 2, 2013 · convert (varchar (10), <your date>, 111). But, honestly, it's worth to think about storing and comparing your dates as dates

  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 and …

  8. Date format in dd/MM/yyyy hh:mm:ss - Stack Overflow

    Jul 29, 2012 · CONVERT and GETDATE come from sql server so I guess it SQL Server

  9. sql - TSQL DATETIME ISO 8601 - Stack Overflow

    Jun 9, 2015 · If you need to convert a date column to ISO-8601 format on SELECT, you can use conversion code 126 or 127 (with timezone information) to achieve the ISO format.

  10. 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