I'd like to set an absolute timeout on a dummy task using CSSDK. I'm retreiving the date from the instantiation screen from the user. Unfortunately, I'm seeming to only be successful setting time. I need to set both the time and the date. Here's a snippet of the code I have:
String tsReleaseDate = task.getVariable("ReleaseDate").toString();
String[] rDate = tsReleaseDate.split("-");
int year=Integer.parseInt(rDate[0]);
int month=Integer.parseInt(rDate[1])-1;
int date=Integer.parseInt(rDate[2]);
Date releaseDate = new Date();
releaseDate.setYear(year);
releaseDate.setMonth(month);
releaseDate.setDate(date);
releaseDate.setHours(18);
releaseDate.setMinutes(00);
releaseDate.setSeconds(00);
for (CSTask workflowTask: workflowTasks){
if(workflowTask.getKindName() == "dummytask"){
workflowTask.setTimeout(releaseDate);
}
This isn't working! My release date should be 120920150600, but its being set to Sun Jul 04 19:01:39. Any help or suggestions would be greatly appreciated!