Re: Date - 1 day in Address Book
Re: Date - 1 day in Address Book
- Subject: Re: Date - 1 day in Address Book
- From: Steve Roy <email@hidden>
- Date: Mon, 21 Jul 2003 11:18:57 -0400
Michelle Steiner <email@hidden> wrote:
>
set d to "2.9.1970"
>
set theDate to date d
>
tell application "Address Book"
>
set thePerson to make new person at end with properties {first
>
name:"Foo", last name:"Bar"}
>
>
tell thePerson
>
set birth date to theDate
>
end tell
>
save addressbook
>
end tell
>
>
The date in the address book is Monday, February 9, 1970
Yes, it works with the U.S. date formatting. It's with the Switzerland (Italian)
format that things go wrong, although I haven't been able to duplicate it. In
this format, 2.9.1970 means september 2, 1970. However it shows up as september
1, 1970 in Address Book.
Steve
--
Steve Roy <email@hidden>
Personal homepage: <
http://homepage.mac.com/sroy>
Projects homepage: <
http://www.roydesign.net>
_______________________________________________
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.