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

Re: dates as text


  • Subject: Re: dates as text
  • From: Peter Wait <email@hidden>
  • Date: Sat, 10 Jan 2004 12:06:14 -0800

> Just put the word 'date ' in front of the text instead of 'as date' after
> it.

Stated this way, works fine:

if custom date field two of thisContact  "" then
set myDate to custom date field two of thisContact
end if

This way:

if custom date field two of thisContact  "" then
set myDate to custom date field two of thisContact as date
end if

returns "Can't make Wed, Dec 31, 2003 into a date"

This way:

if custom date field two of thisContact  "" then
set myDate to date custom date field two of thisContact
end if

Returns an AppleScript error "application can't get custom date field two"

Help; I just want the field in date format.

Peter
_______________________________________________
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: dates as text
      • From: Christopher Stone <email@hidden>
  • Prev by Date: Re: handling Unicode text
  • Next by Date: iPhoto 4
  • Previous by thread: Re: AppleScript is tremendously versatile about understanding dates (almost too versatile)
  • Next by thread: Re: dates as text
  • Index(es):
    • Date
    • Thread