• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: How to get Zero (0) before Month ?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to get Zero (0) before Month ?


  • Subject: Re: How to get Zero (0) before Month ?
  • From: John Delacour <email@hidden>
  • Date: Tue, 18 Feb 2003 21:57:06 +0000
  • Mac-eudora-version: 6.0a6

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]'"

JD
_______________________________________________
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.

  • Follow-Ups:
    • Re: How to get Zero (0) before Month ?
      • From: John Stewart <email@hidden>
    • Re: How to get Zero (0) before Month ?
      • From: John Stewart <email@hidden>
References: 
 >How to get Zero (0) before Month ? (From: Krister Nyman <email@hidden>)

  • Prev by Date: Re: Script Printing with MS Word?
  • Next by Date: Re: log?
  • Previous by thread: Best way to auto rename files
  • Next by thread: Re: How to get Zero (0) before Month ?
  • Index(es):
    • Date
    • Thread