Unix time is seconds since epoch (1970-01-01). Depending on what you mean, you can convert it to a
struct tm with localtime or convert it to a string with strftime.
time_t t = time(NULL);
struct tm *tm = localtime(&t);
strftime(date, sizeof(date), "%Y-%m-%d", tm);