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

Re: Applescript Date Manipulation...


  • Subject: Re: Applescript Date Manipulation...
  • From: Richard Morton <email@hidden>
  • Date: Sat, 21 Dec 2002 14:19:36 +1100

On Saturday, December 21, 2002, at 01:00 PM, Domains4Days.com wrote:
... But I would really like it to look like:

12-20-02 5-54-00 PM ( short version - PC friendly)...

There are some handlers on The FooDoo Lounge that will pretty much do this. They all use a 4 digit year but apart from that, this does what you want:

on dateStr from dateObj
return (numDateUS from dateObj) & space & (timeString from dateObj)
end dateStr

dateStr from (current date)
--> "12-21-2002 2-12-26 PM"

numDateUS is here:

http://home.netc.net.au/~sunreal/FooDooLounge/code/ date_handlers.html#nus

timeString is here:

http://home.netc.net.au/~sunreal/FooDooLounge/code/ date_handlers.html#timeString


Cheers,

Date R
_______________________________________________
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.

References: 
 >Applescript Date Manipulation... (From: "Domains4Days.com" <email@hidden>)

  • Prev by Date: Re: uh, that's so cool! AS 1.9.1
  • Next by Date: Choose Folder Glitch
  • Previous by thread: Applescript Date Manipulation...
  • Next by thread: Choose Folder Glitch
  • Index(es):
    • Date
    • Thread