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

    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. sql - How do I use select with date condition? - Stack Overflow

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

  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 portion (not …

  4. 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 continuum ;) …

  5. How to create a Date in SQL Server given the Day, Month and Year as ...

    Feb 23, 2016 · Several are provided in answers to "Create a date with T-SQL". A notable example involves creating the date by adding years, months, and days to the "zero date".

  6. sql - Select data from date range between two dates - Stack Overflow

    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.

  7. 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 cast in mm/dd/yyyy …

  8. sql - How to get calendar Quarter from a date in TSQL - Stack Overflow

    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 2007-Q3 I can ...

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

    Sep 2, 2013 · I'm having a sql table with date column named CREATED_TS which holds the dates in different format eg. as shown below Feb 20 2012 12:00AM 11/29/12 8:20:53 PM Feb 20 2012 …

  10. SQL Server: Using a case statement to see if a date is NULL and if it ...

    Jan 24, 2013 · If you ever create a database that scales to millions of users, you want a little processing as possible in the database and as much as possible in the client. Doing conversion of a date to …