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];}
 

你可能感兴趣的:(java,工作)