• 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: month contants and dates...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: month contants and dates...


  • Subject: Re: month contants and dates...
  • From: Luther Fuller <email@hidden>
  • Date: Sun, 17 May 2015 09:00:13 -0500

On May 17, 2015, at 8:04 AM, Jean-Christophe Helary wrote:

Now, what I am trying to do is get the number of the month of an Applescript date and for that I first create a list of English months and then run a loop and check if my "month of [date]" is equal to a list member. If yes, I assign the index value of the match to a 

I just tried this and it seems to give the result you are asking for ...

set thisDate to current date
set monthIndex to month of thisDate as integer



 _______________________________________________
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

References: 
 >month contants and dates... (From: Jean-Christophe Helary <email@hidden>)

  • Prev by Date: Preferences and l10n
  • Next by Date: Re: month contants and dates...
  • Previous by thread: month contants and dates...
  • Next by thread: Re: month contants and dates...
  • Index(es):
    • Date
    • Thread