select * from dates
where dte = date('now');
select dtm from datetimes
where dtm >= datetime(date('now'))
and dtm < datetime(date('now', '+1 day'));
select datetime(dtm, 'unixepoch', 'localtime') from unix
where dtm >= strftime('%s', date('now'))
and dtm < strftime('%s', date('now', '+1 day'));
http://hangaebal.blogspot.kr/2014/06/web-sql-search-on-dates.html
https://gist.github.com/dwurf/8929425
'Blogger 이사' 카테고리의 다른 글
[JavaScript] '초' -> '시 분 초' 형태로 (0) | 2016.01.14 |
---|---|
[Javascript] String replaceAll (0) | 2016.01.14 |
[SQLite] SQLite Syntax Documentation (0) | 2016.01.14 |
[SQLite]Web SQL error handling (0) | 2016.01.14 |
[JavaScript] String Object Methods (0) | 2016.01.14 |