• 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: Date formatting
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

  • Follow-Ups:
    • Re: Date formatting
      • From: Paul Berkowitz <email@hidden>
    • Re: Date formatting
      • From: Paul Berkowitz <email@hidden>
References: 
 >Date formatting (From: "Marc K. Myers" <email@hidden>)

  • Prev by Date: Re: Short course
  • Next by Date: Re: tell application - without the app's name?
  • Previous by thread: Date formatting
  • Next by thread: Re: Date formatting
  • Index(es):
    • Date
    • Thread