• 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: Paul Berkowitz <email@hidden>
  • Date: Thu, 13 Oct 2005 11:27:28 -0700
  • Thread-topic: date of question

On 10/13/05 11:13 AM, "Robert Poland" <email@hidden> 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.

You left out 'date' before your short date string, so it hasn't compiled as
a date. You can't use a string. You can't really do AppleScript at all
without knowing that.

set EventStartDate to date "10/20/05"
set EventEndDate to (EventStartDate) + 3600
EventEndDate
--> date "Thursday, October 20, 2005 1:00:00 AM"

--
Paul Berkowitz


 _______________________________________________
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

  • Follow-Ups:
    • Re: date of question
      • From: Robert Poland <email@hidden>
    • Re: date of question
      • From: "Mark J. Reed" <email@hidden>
References: 
 >date of question (From: Robert Poland <email@hidden>)

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