I've been attempting to convert a date object to the ISOString() format, but it's consistently returning a result that is 1 day off (i.e., it subtracts 1 day).
var fromDate = {
day:4,
month:5,
year:2012
}
var fromDateString = new Date(fromDate.year+'-'+fromDate.month+'-'+fromDate.day)
console.log(fromDateString.toISOString())