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

Re: Date trouble


  • Subject: Re: Date trouble
  • From: Barry Wainwright <email@hidden>
  • Date: Fri, 20 Oct 2006 16:59:48 +0100
  • Thread-topic: Date trouble

On 20/10/06 13:12, "W. Thomas Leroux" <email@hidden> wrote:

> Hey all, I'm having what I think is a simple problem, but I can't seem
> to find a solution.
>
> Currently:
> set current_time to ((current date) as string)
>
> Generates:
> "Friday, October 20, 2006 8:03:57"
>
> What I would like to get is "2006-10-20 08:03:57", can some kind soul
> point me in the correct direction?  Thanks.
>
> Thomas

tell (current date) to (it's year as text) & "-" & (it's month as integer) &
"-" & it's day & " " & it's time string

--
Barry


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Date trouble
      • From: "Mark J. Reed" <email@hidden>
References: 
 >Date trouble (From: "W. Thomas Leroux" <email@hidden>)

  • Prev by Date: Re: Why is it?
  • Next by Date: Re: Date trouble
  • Previous by thread: Re: Date trouble
  • Next by thread: Re: Date trouble
  • Index(es):
    • Date
    • Thread