• 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: Please help with date format
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Please help with date format


  • Subject: Re: Please help with date format
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 16 Aug 2014 10:30:46 +1000

G'day Shane

I'm trying to use an NSDate, and save in a text file, and retrieve it, but cannot find any guidance on the net.

Your assistance would be greatly appreciated.

Regards

Santa


On 16/08/2014, at 9:46 AM, Shane Stanley <email@hidden> wrote:

On 16 Aug 2014, at 6:40 am, Brian Christmas <email@hidden> wrote:

> 		set my startDateTimeNSDAte to my dateFormatter's myDate

You can't pass an AS date to a date formatter, and your expression is meaningless -- date formatters don't have a myDate method. It might be that you want to use stringFromDate:, but then you'd need to either convert your AS date to an NSDate, or use an NSDate to begin with.

But it's not obvious from your code what you're trying to do.

> routine to set the NSDates to a suitable format

Dates don't have formats -- date strings do.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


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

This email sent to email@hidden


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

This email sent to email@hidden


  • Follow-Ups:
    • Re: Please help with date format
      • From: Shane Stanley <email@hidden>
References: 
 >Please help with date format (From: Brian Christmas <email@hidden>)
 >Re: Please help with date format (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Please help with date format
  • Next by Date: Re: Please help with date format
  • Previous by thread: Re: Please help with date format
  • Next by thread: Re: Please help with date format
  • Index(es):
    • Date
    • Thread