Re: duplicating files and adding today's date
Re: duplicating files and adding today's date
- Subject: Re: duplicating files and adding today's date
- From: Jolly Roger <email@hidden>
- Date: Mon, 27 Nov 2000 20:24:49 -0600
- Replyto: email@hidden
on 11/27/2000 5:07 PM, Chris Chattom wrote:
>
if anyone knows how to have the file renamed with the current date, that would
>
be most helpful...
You could use this to grab a formatted date (YYMMDD):
on FormatDate(theDate)
set theDate to theDate as date
set dd to text -2 thru -1 of ("0" & theDate's day)
copy theDate to tempDate
set the month of tempDate to January
set mm to text -2 thru -1 of ,
("0" & 1 + (theDate - tempDate + 1314864) div 2629728)
set yy to text -1 thru -4 of ((year of theDate) as text)
return (yy & mm & dd as text)
end FormatDate
JR