Re: Creating a date
Re: Creating a date
- Subject: Re: Creating a date
- From: Neil Faiman <email@hidden>
- Date: Wed, 6 Apr 2005 07:08:45 -0400
On Apr 6, 2005, at 1:32 AM, Nicolas Silvestre wrote:
I want to create a date using the day and month of the birth date in address book, and with the current year.
...
When I display dialog thedate, the day and themonth, I get :
mercredi 28 septembre 1949 12:00:00
28
September
...
After that, how do I create a date that is theday/themonth/2005, as a date ?
You can directly modify the "year" property of a date object.
set d to (date "Monday, August 10, 1953 12:00:00 AM")
set year of d to year of (current date)
display dialog (date string of d)
displays "Wednesday, August 10, 2005".
Regards,
Neil Faiman _______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden