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: Paul Berkowitz <email@hidden>
- Date: Sun, 16 Feb 2003 13:43:42 -0800
On 2/16/03 11:04 AM, "Michael Grant" <email@hidden> wrote:
>
On 2/16/03 9:35 AM, "Krister Nyman" <email@hidden> wrote:
>
>
> I always want to have month in two numbers, 01,02,03,04,05.....10,11,12
>
> like it is with days.
>
>
on twoDigits(aString)
>
if (length of aString) < 2 then
>
set aString to "0" & aString
>
end if
>
return aString
>
end twoDigits
set aString to text -2 thru -1 of ("0" & aString)
--
Paul Berkowitz
_______________________________________________
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.