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

Please help with date format


  • Subject: Please help with date format
  • From: Brian Christmas <email@hidden>
  • Date: Sat, 16 Aug 2014 06:40:51 +1000

G'day scripters

I've done an all-nighter to try and work out how to save an NSDate, and have come up with the following routine to set the NSDates to a suitable format.

However, the routine fails with an error that the variable NSDateFormatterMediumStyle is not defined. 

I've defined dateFormatter as a property. What's wrong please?

Regards

Santa

set myDate to current date
set my dateFormatter to current application's NSDateFormatter's alloc()'s init()
try
my dateFormatter's setDateStyle_(NSDateFormatterMediumStyle)
on error errmsg
display dialog errmsg
end try
set my startDateTimeNSDAte to my dateFormatter's myDate
set my finishDateTimeNSDAte to my dateFormatter's myDate


 _______________________________________________
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>
    • Re: Please help with date format
      • From: Alex Zavatone <email@hidden>
    • Re: Please help with date format
      • From: Alex Zavatone <email@hidden>
  • Prev by Date: Re: What does a 'dot' mean, perhaps a bug? Update
  • Next by Date: Re: Please help with date format
  • Previous by thread: Re: What does a 'dot' mean, perhaps a bug? Update
  • Next by thread: Re: Please help with date format
  • Index(es):
    • Date
    • Thread