• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Re(2): Changing current date format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Re(2): Changing current date format


  • Subject: Re: Re(2): Changing current date format
  • From: "koenig.yvan" <email@hidden>
  • Date: Sun, 19 Jan 2014 19:30:01 +0100

Le 19/01/2014 à 19:16, JF <email@hidden> a écrit :

> Thank you all for your suggestions.
>
> These ones worked best for me:
> set subject of foo to "Invoice dated " & (do shell script "date +%d%b%Y")
> set subject of foo to "Invoice dated " & (do shell script "date +'%d %B %Y'")
>
> Sun, 19 Jan 2014 11:43:39 -0500, Neil Faiman  wrote:
>
>>
>> On Jan 19, 2014, at 11:17 AM, JF <email@hidden> wrote:
>>
>>> How can I set the current date to read: 17Jan2014 or 17 January 2014?
>>> and without the time
>>
>> $ date +'%d%b%Y'
>> 19Jan2014
>> $ date +'%d %B %Y'
>> 19 January 2014
>> $
>>

I'm sure that the vanilla answers are faster than the do shell script ones but what is really surprising
is that you are selecting answers translating
2014/01/19 into 19Jan2014
after asking for the result 17Jan2014

Yvan KOENIG (VALLAURIS, France) dimanche 19 janvier 2014 19:29:24



 _______________________________________________
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


  • Follow-Ups:
    • Re: Re(2): Changing current date format
      • From: Christopher Stone <email@hidden>
    • Re(4): Changing current date format
      • From: JF <email@hidden>
References: 
 >Re(2): Changing current date format (From: JF <email@hidden>)

  • Prev by Date: Re(2): Changing current date format
  • Next by Date: Re(4): Changing current date format
  • Previous by thread: Re(2): Changing current date format
  • Next by thread: Re(4): Changing current date format
  • Index(es):
    • Date
    • Thread