In native javascript, use Date.UTC(year, month, day)to get the number of milliseconds since 1971-01-01. Then add the days * (86400000) and create a date from this value:
var date_one_ms = Date.UTC(2012, 05, 25);
var ms_in_day = 24*3600*1000;
var date_30_days_later = new Date(date_one_ms + 30 * ms_in_day);
source
share