Re: Date formatting
Re: Date formatting
- Subject: Re: Date formatting
- From: John Stewart <email@hidden>
- Date: Tue, 4 Mar 2003 05:25:02 -0500
On Tuesday, March 4, 2003, at 12:18 AM, Marc K. Myers wrote:
Is there a way to use Unix utilities in an AppleScript to format dates
from a date variable to text using the kind of formatting capabilities
that are in the "date" command? How would it work?
Marc [03/04/03 12:18:41 AM]
_______________________________________________
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.
do shell script "date + %m/%d/%y"
--> "03/04/03"
Use "man date" (no quotes and no pun intended) in the Terminal for the
Unix man page on its date command. The drawback is that it only works
with the current date. Others on the list (that are better at Unix) can
probably supply a method for formatting other than the current date.
John
_______________________________________________
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.