Basically what I'm trying to do is using this api, api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/?key=<key>&steamids=76561197960435530
and use the time created field and display it converted from UNIX time to regular time
This is some I code I have made
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
namespace JSONTest
{
class Program
{
static void Main(string[] args)
{
string SteamKey = // key
WebClient c = new WebClient();
var data = c.DownloadString("http://api.steampowered.com/ISteamUser/GetPlayerSummaries/v0002/" + "?key=" + SteamKey + "&steamids=76561197960435530");
// Console.WriteLine(data);
JObject o = JObject.Parse(data);
Console.WriteLine("Name: " + o["response"]["players"][0]["timecreated"]);
Console.ReadLine();
// Prompt the user on what they want to do
}
}
}
I have got it to display the field "timecreated" but I don't know how I would convert that to a Date. Pointers would be greatly appreciated.