'Wed Aug 13 2014 04:00:00 GMT+0400 (RTZ 2 (лето))'
в обоих случаях. Но. В случае А -somedate.valueOf() == 1407873600000
, а в случае Б - somedate.valueOf() == 1407888000000
.var date = {
year: 2014,
month: 7,
date: 13
};
document.write(
Date.UTC(
date.year,
date.month || 0,
date.date || 1
)
);