View Single Post
Brad
Selfish Heathen
 
Join Date: May 2004
Location: Zone of Pain
 
2022-07-19, 15:15

I'm just now reading this thread — not sure how I missed it before. Doesn't this do what you want for getting "previous month"?

Code:
date -d "last month" "+%Y%m"
Why are you getting the current month, setting it to the 15th, and then asking for last month? Is your system doing something weird on the 1st or maybe has an unwanted time zone set somewhere?

The quality of this board depends on the quality of the posts. The only way to guarantee thoughtful, informative discussion is to write thoughtful, informative posts. AppleNova is not a real-time chat forum. You have time to compose messages and edit them before and after posting.
  quote