anchor.diff:              var shiftedDate = new Date();
               var timeShifted =  dateToShiftInMilliseconds + (parseInt(numberOfDaysToShift, 10)*24*60*60*1000)
               shiftedDate.setTime(timeShifted)
  -            return shiftedDate.toString();
  +
  +            var year = shiftedDate.getFullYear()
  +            var day = shiftedDate.getDate()
  +            var month = shiftedDate.getMonth()+1
  +
  +            day = (day < 10 ) ? ("0" + day) : day
  +            month = (month < 10) ? ("0" + month): month
  +            return year+"-" + month+ "-" + day;
           }
   
           function executeDelayAdvancePost() {
               var arrayOfActivities='';
  -            var mapOfParameters='';
  +            var mapOfParameters={};
               var shiftOptionForwardOrBackward = $('delayAdvanceSelector').value
               var reason = $('reason').value
               var toDate = shiftOptionForwardOrBackward*$('toDate').value
  
positive.code:             SC.asyncRequest('${collectionResource}'+'/' + arrayOfActivities, Object.extend({
                  method: 'POST',
                  contentType: 'application/json',
                  parameters: parameters
              }))
          }
  
  
negative.code:                 reason = $$('#new-reason-input-group input')[0].value
              }
  
              var mapOfParameters = {};
              var events = $$('.event')
              var checkedEvents = events.select(function(e) { return e.checked })
  
              var isStateEmpty= (state == "");
              for (var i = 0; i< checkedEvents.length; i++ ){
                  if (isStateEmpty) {
                      state = $$('.event')[2].up('li').className.toLowerCase()
                  }
                  var date = checkedEvents[i].up('.day').down('h3').innerHTML
                  var activityKey = checkedEvents[i].value
                  var dateInDateFormat = convertStringToDate(date)
                  var shiftedDate = shiftDateByNumberOfDays(dateInDateFormat.getTime(), toDate)
                  mapOfParameters[activityKey] = {
                          "reason": reason,
                          "date": shiftedDate,
                          "state" : state
                  };
              }
              var arrayOfActivities = events.select(function(e) { return e.checked }).collect(function(e) { return e.value }).join(';')
              post(arrayOfActivities, Object.toJSON(mapOfParameters) );
          }
  
  