do shell script date with last month's date
do shell script date with last month's date
- Subject: do shell script date with last month's date
- From: JF <email@hidden>
- Date: Fri, 14 Feb 2014 13:10:46 +0000
Hello
I am using this to put a date into the subject of an email created by an applescript.
do shell script "date +'%B %Y'" which gives me "February 2014" for this month's emails
However, some of my emails require last month's date, so for emails sent in February the output should be "January 2014"
I have tried:
do shell script "date +'%B -1 month %Y'"
but the output is "February -1 month 2014"".
Also any variations I have tried do not work either. I have searched for this on the Internet but have found none, except masses of Unix code lines which I am sure are not required for this simple shell script.
Can someone help me with this?
TIA
James
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden