[Solved] Can i get iPhone purchase/first time use date [closed]

Introduction

This question is about finding out the purchase/first time use date of an iPhone. This is a common question that many iPhone users have, especially when they are trying to determine the age of their device. Fortunately, there are a few ways to find out the purchase/first time use date of an iPhone. In this article, we will discuss the different methods that can be used to determine the purchase/first time use date of an iPhone.

Solution

Unfortunately, there is no way to determine the purchase/first time use date of an iPhone. The only way to find out this information is to contact the original owner or the store where the iPhone was purchased.


Short answer: no. Best you can get is information on when the device was turned on

#include <sys/sysctl.h>

struct timeval boottime;

int mib[2] = {CTL_KERN, KERN_BOOTTIME};
size_t size = sizeof(boottime);
time_t now;
time_t uptime = -1;

(void)time(&now);

if (sysctl(mib, 2, &boottime, &size, NULL, 0) != -1 && boottime.tv_sec != 0) {
    uptime = now - boottime.tv_sec;
}

NSDate *bootDate = [NSDate dateWithTimeIntervalSinceNow:((NSTimeInterval)-uptime)]

3

solved Can i get iPhone purchase/first time use date [closed]