CRMOD dateV2ToV1
private String dateV2ToV1(String scheduledDate) {
// Date format for V2 is: yyyy-mm-ddThh:mm:ssZ
scheduledDate = scheduledDate.replaceAll("-", ":").replaceAll("T", ":").replaceAll("t", ":").replaceAll("Z", ":").replaceAll("z", ":");
scheduledDate = scheduledDate.substring(0, scheduledDate.length() - 1);
String[] v2 = scheduledDate.split(":");
// Date format for V1 is: mm/dd/yyy hh:mm:ss
return v2[1] + "/" + v2[2] + "/" + v2[0] + " " + v2[3] + ":" + v2[4] + ":" + v2[5];
}