var myDate = new Date()// assume myDate = Wed Aug 1 2001var currDate = myDate.setUTCFullYear(2010)var showDate = myDate// showDate = Sun Aug 1 2010
Note:The day of the week is automatically worked out by the system.