Re: dates as text
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.