android - get week number of a date -
select strftime('%w', day) week, sum(amount) mytable group week order week desc
this query useful amount week. 1 gives week number in year, may know how week number in month. have googled lot. results related week number in year not in month.
thanks in advance.
you can manipulate strftime() answer.
apply strftime() on given date , first date of given dates month , subtract them week number of month
eg
select strftime('%w','2013-05-04')-strftime('%w','2013-05-01') +1;
Comments
Post a Comment