• 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: Coerce date saved as text back to Applescript's date format?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coerce date saved as text back to Applescript's date format?


  • Subject: Re: Coerce date saved as text back to Applescript's date format?
  • From: jj <email@hidden>
  • Date: Mon, 20 Dec 2004 21:52:44 +0100

One more thing: the string must be formatted according to the International
preference pane, or it will error. For instance, this won't work in my
system:

date "Thursday, December 16, 2004 11:24:05 AM"

And this will do:

date "jueves, 16 diciembre 2004 11:24:05"
date "16/12/04 11:24:05"

Or:

set x to current date
set day of x to 16
set month of x to December
set year of x to 2004

set time of x to (11 * 3600) + (24 * 60) + (1 * 5)

x --> your date


jj

--
http://www.macscripter.net/
http://www.osaxen.com/


 _______________________________________________
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: 
 >Re: Coerce date saved as text back to Applescript's date format? (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Coerce date saved as text back to Applescript's date format?
  • Next by Date: getting across network to older OS
  • Previous by thread: Re: Coerce date saved as text back to Applescript's date format?
  • Next by thread: Re: Coerce date saved as text back to Applescript's date format?
  • Index(es):
    • Date
    • Thread