SQLite select rows if timestamp matches today's date

后端 未结 2 1440
独厮守ぢ
独厮守ぢ 2020-12-11 21:15

I Would like to select all entries from an SQLite table if the entries timestamp matches todays date.

I am querying an SQLite database as follows:

//         


        
相关标签:
2条回答
  • 2020-12-11 21:42

    does this work?

    date('now', 'start of day')
    
    0 讨论(0)
  • 2020-12-11 21:44

    For local timezone:

    date('now','localtime','start of day')
    
    0 讨论(0)
提交回复
热议问题