Re: How to get Zero (0) before Month ?
Re: How to get Zero (0) before Month ?
- Subject: Re: How to get Zero (0) before Month ?
- From: John Stewart <email@hidden>
- Date: Wed, 19 Feb 2003 05:08:53 -0500
On Tuesday, February 18, 2003, at 04:57 PM, John Delacour wrote:
At 4:35 pm +0100 16/2/03, Krister Nyman wrote:
When I use this script :
set the_months to "January February March April...
I get result "2003/2/16" thats great, but I wonder how to get this
"2003/02/16" ?
I always want to have month in two numbers,
01,02,03,04,05.....10,11,12
like it is with days.
MacOS 9.2.2
Not much use for you, but OS X users can save a lot of time by using:
do shell script "perl -e '@t = localtime();
printf qq~%s/d/d~, 1900+$t[5], 1+$t[4], $t[3]'"
Pardon a second post but that should have been -
text -10 thru -1 of (do shell script "date +%c/%m/%d")
to capture just the needed text
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.