当我喜欢下面的时候,GregorianCalendarcalendar=newGregorianCalendar(TimeZone.getTimeZone("UTC"));calendar.setTime(startTime);//startTimeDateDatatypeFactory.newInstance().newXMLGregorianCalendar(calendar);我得到类似2015-04-15T11:04:30.000Z的输出。我希望它像2015-04-15T11:04:30.000。有什么办法可以实现吗? 最佳答案