Please help with date format
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