About 32,100,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 …

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

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

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

  5. sql - Select data from date range between two dates - Stack …

    Jan 8, 2013 · Now what is the query if I want to select sales data between two dates from a date range? For example, I want to select sales data from 2013-01-03 to 2013-01-09.

  6. How can I select the first day of a month in SQL?

    2 I used GETDATE () as a date to work with, you can replace it with the date which you need. Here's how this works: First we format the date in YYYYMMDD... format truncating to keep …

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

  8. Change Date Format (DD/MM/YYYY) in SQL SELECT Statement

    Jul 22, 2016 · Check the configuration of the SQL client you are using. The display format is applied by the application displaying the values

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

  10. sql server - Query comparing dates in SQL - Stack Overflow

    Nov 12, 2013 · Instead of sending a string with the date then, try creating a parameterized query and pass the date as a date-typed parameter. BTW what version of SQL Server are you …