• 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 Text to Date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Coerce Text to Date


  • Subject: Re: Coerce Text to Date
  • From: Bill White <email@hidden>
  • Date: Wed, 11 Dec 2002 19:00:43 -0500

Chris,

> My text variable is named the_text, and the value is (for example)
> "10/17/2002". So...
>
> set the_new_date to date (the_text)
>
> doesn't seem to work, nor does (the_text) as date or anything else.

set the_text to "10/17/2002"

set the_new_date to date (the_text)
--> date "Thursday, October 17, 2002 12:00:00 AM"

Works fine here in OS X 10.2.2, AS 1.9.

Bill
_______________________________________________
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: 
 >Coerce Text to Date (From: Chris Prew <email@hidden>)

  • Prev by Date: Coerce Text to Date
  • Next by Date: Re: Coerce Text to Date
  • Previous by thread: Coerce Text to Date
  • Next by thread: Re: Coerce Text to Date
  • Index(es):
    • Date
    • Thread