I have 10 lines to date, but my date-based select statement seems to work.
SELECT Id,WirelessId,RegNo,DriverName1,MobileNo1,DriverName2,MobileNo1 from DailySchedule where IsDeleted=0 and CreatedDate='2010-05-28'
Any suggestion...
Only if their assigned dates are midnight today. It could be better:
CreatedDate BETWEEN '2010-05-28 00:00' AND '2010-05-29 00:00'
If you want all the entries on May 28th I made
and CreatedDate >='20100528' and CreatedDate < '20100529'
Pay attention to the safe ISO format (YYYYMMDD) without dashes
Also take a look at How to work with dates in SQL Server? to find out why itβs impossible between you to give you all the results you want
, CreateDate , , where. , IsDeleted NULL? (, , .)
: , DATE (CreatedDate) = '2010-05-28'
CreatedDate , , , .
, "10 ", , ?
, , .
:
datediff(day, CreatedDate, '28-may-2010')) = 0
SELECT Id,WirelessId,RegNo,DriverName1,MobileNo1,DriverName2,MobileNo1 from DailySchedule where IsDeleted=0 and date_format(CreatedDate, "%Y-%m-%d")='2010-05-28'
select Id, WirelessId, RegNo, DriverName1, MobileNo1, DriverName2, MobileNo1 from DailySchedule where IsDeleted=0 and CONVERT(varchar,CreatedDate,101) ='05/28/2010'
Source: https://habr.com/ru/post/1747514/More articles:LINQ Group For a project in a non-anonymous type? - c #interface com.sun.xml.ws.developer.WSBindingProvider not visible from class loader - javaJQuery: change event does not fire in IE - jqueryHow to Install a Custom DriverConnectionProvider with Fluent NHibernate - nhibernatehibernate distributed second level cache options - javaOnly the first table is created in the creation of the created table statement - androidhow to call C ++ dll from a Windows C # application project - c #request a large text file containing JSON objects - jsonhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1747518/how-do-i-add-css-to-be-loaded-last-in-drupal&usg=ALkJrhgGirMe-ZFvHI4fszJnwyezrm1edAhttps://translate.googleusercontent.com/translate_c?depth=1&pto=aue&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/1747519/in-ruby-using-cucumber-should-i-mock-out-calls-to-a-webservice&usg=ALkJrhgHuvhG2bSO_JpDt9zyuVsawEKc1wAll Articles