I’m trying to create a new date and then set a NSDatePicker to that date using Myriad Helpers with something like:
set newDate to "Saturday, January 25, 2014 at 3:30:00 PM"
datePicker's setDateAS_(newDate)
or
set newDate to "Saturday, January 25, 2014 at 3:30:00 PM"
datePicker's setDateAS_(date (newDate))
It seems I can’t figure out how to get this working. I tried messing around with NSDateFormatter, and dateFromString but no luck so far. A push in the right direction would be much appreciated. Thanks!
I definitely didn’t think it was a Myriad Helpers issue. I figured the issue was with ASObjC, as the following works in a plain AppleScript application:
set aDate to "Saturday, January 25, 2014 at 03:30:00 PM"
set anotherDate to date aDate
anotherDate