views:

47

answers:

1

I have an char array of 8 bytes which contains current date in long int. How can I convert this into NSDate.

A: 

[NSDate date] will return the current date.

alternatively, see NSDateFormatter to convert it to a string using format specification and back. beyond that... we'll need to know the internal representation of your char array.

Justin