Date entry into database through GUI for Date which is readable by FMDatabase

后端 未结 1 1383
不思量自难忘°
不思量自难忘° 2021-01-26 16:41

I have a set of events which I will have to feed into the database before I ship the app so that the application is ready to read from this database.

I have seen some po

1条回答
  •  忘掉有多难
    2021-01-26 17:01

    Use the date() function. Have a try:

    select * from VendorEvents 
    where ((event_start between date('2011-12-01 00:00:00 +0000') and date('2012-02-01 00:00:00 +0000')) 
        or (event_end between date('2011-12-01 00:00:00 +0000') and date('2012-02-01 00:00:00 +0000')))
    

    0 讨论(0)
提交回复
热议问题