ITeye博客

CRMOD dateV2ToV1

bd2007 · 2011-10-09 11:17 · java · 编程语言 · Markdown

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

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。