About 42,200,000 results
Open links in new tab
  1. How do I query for all dates greater than a certain date in SQL …

    where A.Date >= '2010-04-01' it will do the conversion for you, but in my opinion it is less readable than explicitly converting to a DateTime for the maintenance programmer that will come after you.

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

  3. sql - How do I use select with date condition? - Stack Overflow

    Jan 20, 2009 · In sqlserver, how do I compare dates? For example: Select * from Users where RegistrationDate >= '1/20/2009' (RegistrationDate is datetime type) Thanks

  4. sql - How to get calendar Quarter from a date in TSQL - Stack …

    Oct 12, 2016 · I have different dates in a column. For example: 20080102 20070821 I want to convert these dates in Year and calendar quarter. E.g., Year Quarter 2008 2008-Q1 2007 …

  5. SQL query to select dates between two dates - Stack Overflow

    Feb 26, 2011 · I have a start_date and end_date. I want to get the list of dates in between these two dates. Can anyone help me pointing the mistake in my query. select Date,TotalAllowance …

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

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

    Jul 24, 2009 · Edit, Jan 2012 A worked example of how flexible this is: Need to calculate by rounded time or date figure in sql server Edit, May 2012 Do not use this in WHERE clauses …

  8. sql - Select query with date condition - Stack Overflow

    The ISO date format is understood perfectly by the SQL engine. Best not to use BETWEEN for DATETIME in Access: it's modelled using a floating point type and anyhow time is a …

  9. Get the last day of the month in SQL - Stack Overflow

    From SQL Server 2012 you can use the EOMONTH function. Returns the last day of the month that contains the specified date, with an optional offset. Syntax

  10. sql - Convert string to date in specific format - Stack Overflow

    Jan 8, 2014 · How do I convert a string to a date type in SQL Server 2008 R2? My string is formatted dd/mm/yyyy I tried this SELECT CAST('01/08/2014' AS DATE) But that does the …