• 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: Creating a date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

References: 
 >Creating a date (From: Nicolas Silvestre <email@hidden>)

  • Prev by Date: Re: minimum function?
  • Next by Date: Re: minimum function?
  • Previous by thread: Creating a date
  • Next by thread: RE: merge pdfs
  • Index(es):
    • Date
    • Thread