• 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: Dates/times from strings
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dates/times from strings


  • Subject: Re: Dates/times from strings
  • From: Rick Bargerhuff alias cougar <email@hidden>
  • Date: Fri, 21 Feb 2003 19:52:17 -0500

Hey Tim..

Just after a way to convert from a text string to a date, eg change the string "21/2/2003" into an AppleScript date type.

Try this...

set thedate to "2/21/2003"
return date thedate
-- > returns thedate as an AppleScript date object

Keep in mind what Andrew said...

Note that what AppleScripts accepts as acceptable in the string depends on
your international settings (e.g. date "2/21/2003" in the US, date 21/2/2003
pretty much everywhere else)

Good luck Tim!

Rick Bargerhuff alias cougar
Programmer / Developer
Multi-platform Technician / Specialist / Web Designer
Personal Email: email@hidden
Personal Website : http://mywebpages.comcast.net/cougar718
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Dates/times from strings (From: Tim Mansour <email@hidden>)

  • Prev by Date: Re: FaceSpan and Databases/Data Storage
  • Next by Date: Re: Help -- going posix space crazy
  • Previous by thread: Re: Dates/times from strings
  • Next by thread: Removing duplicate messages in Mail.app
  • Index(es):
    • Date
    • Thread