How to convert it?

Discussion in 'iOS Programming' started by arnieterm, Oct 21, 2008.

  1. arnieterm macrumors regular

    Joined:
    Aug 28, 2008
    #1
    While reading a plist file, I am gettting a date value as double. How can I convert it to NSDate?
    Any idea??
    Thanks
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    How long is a piece of string?

    Unless you know what the double represents in terms of time this is impossible. Is it the number of milliseconds since a particular date/time? If so what date/time?
     
  3. arnieterm thread starter macrumors regular

    Joined:
    Aug 28, 2008
    #3
    It is the date field [last visited date] in the SuspendState.plist file which I am getting in numeric format.
    Thanks
     

Share This Page