AnsweredAssumed Answered

Help needed with Data Integration -> SIS Mapping

Question asked by mgudites on Nov 30, 2018
Latest reply on Dec 11, 2018 by mgudites


We are Ellucian-ILP integrated with Blackboard. Colleague is pushing over all of our courses/users/enrollments.

 

In the Field Mappings for Courses, we're using the following custom script that was provided to us:

 

(function (){

var timeFrames = data.getCourseSection().getTimeFrames();

var endDate = timeFrames.get(0).getEnd();

endDate.set(java.util.Calendar.HOUR_OF_DAY, 23);

endDate.set(java.util.Calendar.MINUTE, 59);

endDate.set(java.util.Calendar.SECOND, 59);

return endDate;

}());

 

This script is taking the course End Date being sent over by Colleague, and changing the time to 23:59:59 instead of 00:00:00. It is functioning correctly.

 

We want to MODIFY the script so in addition to what it's already doing, it'll add three days to whatever date is being sent over. So for example is 11/30/18 is sent over, we'd like it to modify it to 12/03/18 23:59:59. Can anyone help me with some code?

Outcomes