Re: Changing current date format
Re: Changing current date format
- Subject: Re: Changing current date format
- From: "koenig.yvan" <email@hidden>
- Date: Sun, 19 Jan 2014 17:48:52 +0100
The (current date) format in a script automatically results in this output: Sunday, 19 January 2014 16:11:27 which is too much for an email subject.
I have tried: (do shell script "date +%Y-%m-%d") which produces 2014-01-19 which I can rearrange, but I cannot change the 01 to "January" by adding mmmm (as in Microsoft Office).
How can I set the current date to read: 17Jan2014 or 17 January 2014? and without the time
Thanks for any help
You may also try :
tell (current date) (((its day) - 2) as text) & space & its month & space & its year end tell —> "17 January 2014"
Yvan KOENIG (VALLAURIS, France) dimanche 19 janvier 2014 17:46:08
|
_______________________________________________
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