• 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: date of question
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: date of question


  • Subject: Re: date of question
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 13 Oct 2005 11:35:28 -0700


On Oct 13, 2005, at 11:13 AM, Robert Poland wrote:

Trying to get date of "10/20/05".

set EventStartDate to "10/20/05"
set EventEndDate to (EventStartDate) + 3600
EventEndDate

I think I have learned how to get any part of a date but can't figure out how to go back.

That code wont' even compile; you can't convert "10/20/05" to a number.

If you change the code to this:

set EventStartDate to "10/20/05"
set EventEndDate to (date EventStartDate) + 3600
EventEndDate

You will then get this result:

date "Thursday, October 20, 2005 1:00:00 AM"

3600 seconds is one hour.

I don't understand what you're trying to do, though.

--
In theory, theory and practice are the same.
In practice, they're not. --Yogi Berra

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >date of question (From: Robert Poland <email@hidden>)

  • Prev by Date: Re: date of question
  • Next by Date: Re: date of question
  • Previous by thread: Re: date of question
  • Next by thread: Re: date of question
  • Index(es):
    • Date
    • Thread