//To initialize date function
var now = new Date();
// the number of day to convert in Date
var curr_day_number = 208;
//Calculate total time of a single day
var oneDay = 1000 * 60 * 60 * 24;
//Calculate total time all days so
var total_number_of_time_of_day = curr_day_number * oneDay;
//calcuclate start day of the year
var start_date_of_year = new Date(now.getFullYear(), 0, 0);
//calculate start date of year time stamp
var start_date_of_year_timestamp = new Date(start_date_of_year).getTime();
//calulate total time stamp start of the year with total days of the year
var calculated_timestamp = start_date_of_year_timestamp + total_number_of_time_of_day;
// convert time stamp into Date using Date function
var calculated_date = new Date(calculated_timestamp);
document.write(calculated_date);
This will help you out in detail.