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

Date coersion


  • Subject: Date coersion
  • From: Paul Garfield <email@hidden>
  • Date: Wed, 10 Jul 2002 22:20:39 +0100

I want to take a date string from a text field and convert it into a
date.

The first line accepts the string into nDate
set the nDate to contents of text field "toDate" as string

The help says to coerse the string to a date as follows
set cDate to date nDate

But when run I get Apple script error
NSReceiverEvaluationScriptError: 3 (1)

What's wrong?

I am new to Applescript but hey you have to start sometime!

Thanks
Paul Garfield
_______________________________________________
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:
    • Preparing a lecture
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: way to identify currently running script?
  • Next by Date: Re: [OT] URL terminators
  • Previous by thread: Deleting resource forks [image icons/previews]
  • Next by thread: Preparing a lecture
  • Index(es):
    • Date
    • Thread