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

angular - Ionic slides - dynamically add slides before and after -

minify - Minimizing css files -

Add a dynamic header in angular 2 http provider -