sql - How to find the selected date is Saturday or Sunday in sqlite manager -


i want find if selected date table saturday or sunday in sql. i'm using sqlitemanager. if help, appreciated.

you can use strftime():

select (case when strftime('%w', datecol) in ('0', '6') 1 else 0 end) is_weekend 

Comments

Popular posts from this blog

javascript - WinJS appendTextAsync producing scheduler errors -

minify - Minimizing css files -

Sockets with kotlin -