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

Coerce Text to Date


  • Subject: Coerce Text to Date
  • From: Chris Prew <email@hidden>
  • Date: Wed, 11 Dec 2002 15:35:36 -0600

Hi, I have a text variable in a date format that I need to convert to a true date format so i can manipulate it as a date. Whats the best way to do this? I've tried lots of ways with no success.

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. I've also tried turning the text into a single list item with no success.

This is probably a really simply question, but I can't figure it out. Thanks in advance

Chris
_______________________________________________
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.

  • Follow-Ups:
    • Re: Coerce Text to Date
      • From: Paul Berkowitz <email@hidden>
    • Re: Coerce Text to Date
      • From: Bill White <email@hidden>
  • Prev by Date: Re: funny FM/AS/OE behavior - Help!
  • Next by Date: Re: Coerce Text to Date
  • Previous by thread: unicode
  • Next by thread: Re: Coerce Text to Date
  • Index(es):
    • Date
    • Thread