function calculateDatesObj(startDateTime, endDateTime){
      var date = {};
      startDateTime = moment(startDateTime);
      date.startTime = moment.utc([
        startDateTime.year(), startDateTime.month(), startDateTime.date(),
        startTimeHour, startTimeMin, 0, 0
      ]);
      date.endTime = moment.utc([
        startDateTime.year(), startDateTime.month(), startDateTime.date(),
        endTimeHour, endTimeMin, 0, 0
      ]);
      return date;
    }
// the result of this function will be finally saved in the DB
the result of this function will be finally saved in the DB
the result of this function will be finally saved in the DB
function calculateDatesObj(startDateTime, endDateTime){
      var date = {};
      startDateTime = moment(startDateTime);
      date.startTime = moment.utc([
        startDateTime.year(), startDateTime.month(), startDateTime.date(),
        startTimeHour, startTimeMin, 0, 0
      ]);
      date.endTime = moment.utc([
        startDateTime.year(), startDateTime.month(), startDateTime.date(),
        endTimeHour, endTimeMin, 0, 0
      ]);
      return date;
    }
function calculateDatesObj ( startDateTime , endDateTime ) { var date = { } ; startDateTime = moment ( startDateTime ) ; date . startTime = moment . utc ( [ startDateTime . year ( ) , startDateTime . month ( ) , startDateTime . date ( ) , startTimeHour , startTimeMin , 0 , 0 ] ) ; date . endTime = moment . utc ( [ startDateTime . year ( ) , startDateTime . month ( ) , startDateTime . date ( ) , endTimeHour , endTimeMin , 0 , 0 ] ) ; return date ; }
the result of this function will be finally saved in the DB
the result of this function will be finally saved in the DB