parsing server date and API integration