From http://stackoverflow.com/questions/1244094/converting-json-results-to-a-date