Re: Date Routines
Re: Date Routines
- Subject: Re: Date Routines
- From: Michelle Steiner <email@hidden>
- Date: Thu, 7 Aug 2003 11:52:54 -0700
On Thursday, August 7, 2003, at 11:34 AM, Steve Zaspel wrote:
I guess I should have been more clear. I am given a date in a dialog
box,
and I need to calculate the day of week and the date of the following
day.
Then I have to translate it into Spanish, but I have pretty much got
that
part figured out.
set returned_date to date (text returned of (display dialog "enter a
date." default answer "")) --the entered date
set next_date to returned_date + 1 * days --the following date
set returned_day to weekday of returned_date as text --day of week of
the entered date
set next_day to weekday of next_date as text --day of week of
following date
--Michelle
--
Chastity always takes its toll. In some it produces pimples; in others,
sex laws. -- Karl Kraus
_______________________________________________
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.