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

Re: Date computation


  • Subject: Re: Date computation
  • From: Michelle Steiner <email@hidden>
  • Date: Fri, 7 Jan 2005 11:07:45 -0700

On Jan 7, 2005, at 10:52 AM, yvan-koenig wrote:

else
set d to date ("" & (day of d) & "/" & (cMonth + 1) & "/" & (year of d))

Nice; however, that works for your system, but not for mine.

set d to (current date)
set cmonth to month of d as number
set d to date ("" & (day of d) & "/" & (cmonth + 1) & "/" & (year of d))
--> date "Saturday, July 2, 2005 12:00:00 AM"

I need it this way:

set d to (current date)
set cmonth to month of d as number
set d to date ("" & (cmonth + 1) & "/" & (day of d) & "/" & (year of d))
--> date "Monday, February 7, 2005 12:00:00 AM"

--
Are you better off today than you were on Jan 20th, 2001?

_______________________________________________
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


  • Follow-Ups:
    • Re: Date computation
      • From: yvan-koenig <email@hidden>
References: 
 >Fwd: Date computation (From: yvan-koenig <email@hidden>)

  • Prev by Date: Fwd: Date computation
  • Next by Date: Re: Date computation
  • Previous by thread: Fwd: Date computation
  • Next by thread: Re: Date computation
  • Index(es):
    • Date
    • Thread