About 925,000 results
Open links in new tab
  1. How to select date without time in SQL - Stack Overflow

    Feb 26, 2011 · When I select date in SQL it is returned as 2011-02-25 21:17:33.933. But I need only the Date part, that is 2011-02-25. How can I do this?

  2. How to get Time from DateTime format in SQL? - Stack Overflow

    Feb 9, 2011 · 2 If you want date something in this style: Oct 23 2013 10:30AM Use this SELECT CONVERT(NVARCHAR(30),getdate(), 100) method takes 3 parameters datatype …

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

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

    How to convert datetime to date only (with time set to 00:00:00.000) Asked 16 years, 4 months ago Modified 2 years, 5 months ago Viewed 146k times

  5. How to combine date from one field with time from another field

    Mar 12, 2009 · In an extract I am dealing with, I have 2 datetime columns. One column stores the dates and another the times as shown. How can I query the table to combine these two fields …

  6. Best approach to remove time part of datetime in SQL Server

    Jul 24, 2009 · Of course, the absolute best approach for this is to use SQL Server 2008 (or higher) and separate out your dates and times, as the SQL Server database engine is then …

  7. How do I query for all dates greater than a certain date in SQL …

    Mar 4, 2010 · I just find it more readable, because it's strikingly obvious that this is a date-time. Too many Database Systems store date values in a varchar field, but you're right about the …

  8. sql - How to cast the DateTime to Time - Stack Overflow

    Mar 19, 2015 · In this article published in 2000 the writer explains in depth how SQL Server treats dates and times. I doubt if anything significant changed between 2000 and 2015 in the way …

  9. database - how to get current datetime in SQL? - Stack Overflow

    Aug 5, 2009 · Want to get current datetime to insert into lastModifiedTime column. I am using MySQL database. My questions are: is there a function available in SQL? or it is …

  10. Performing date/time subtraction in SQL Server - Stack Overflow

    Mar 15, 2012 · I have four columns in a table: date entered, time entered, date completed, time completed I would like to know the difference between date/time ENTERED and date/time …