select strftime('%d', '2020-02-01', '+1 month', 'start of month', '-1 day')
やっていること
指定日(2020-02-01)以降が順に処理される。
+1 month
- 指定日の翌月
start of month
- (翌月の)月初(指定日が1日なら不要だが念のため)
- 1day
- (翌月の月初の)前日
select strftime('%d', '2020-02-01', '+1 month', 'start of month', '-1 day')
やっていること
指定日(2020-02-01)以降が順に処理される。
+1 month
start of month
- 1day