• 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 Help - D&T stamp w Short dates
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Date Help - D&T stamp w Short dates


  • Subject: Re: Date Help - D&T stamp w Short dates
  • From: "Patrick D. Fox" <email@hidden>
  • Date: Sat, 11 Jan 2003 04:34:36 -0800

> Basically, I would like to create a date - time stamp that ideally would
> look like the following
>
> IDEAL1: 01-06-03 09-23-21 AM (mm-dd-yy)
> IDEAL2: 2003-01-06 09-23-21 AM (yyyy-mm-dd)

Try:

set ideal1 to do shell script "date +''%m-%d-%y' '%I-%M-%S' %p'"
set ideal2 to do shell script "date +''%Y-%m-%d' '%I-%M-%S' %p'"

Patrick
_______________________________________________
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 Help - D&T stamp w Short dates
      • From: John W Baxter <email@hidden>
References: 
 >Date Help - D&T stamp w Short dates (From: "Domains4Days.com" <email@hidden>)

  • Prev by Date: Re: Text file reading... (David Crowe)
  • Next by Date: Re: Script to get default browser? > Philip
  • Previous by thread: Re: Date Help - D&T stamp w Short dates
  • Next by thread: Re: Date Help - D&T stamp w Short dates
  • Index(es):
    • Date
    • Thread