Here you can find the source of getDateTimeRepresentation(Calendar date)
Parameter | Description |
---|---|
date | a parameter |
public static String getDateTimeRepresentation(Calendar date)
//package com.java2s; //License from project: Apache License import java.util.Calendar; import javax.xml.bind.DatatypeConverter; public class Main { /**//from w w w . j a v a2 s . co m * Given a Calendar instance, returns its String representation * according to XSD standards. If the given value is <code>null</code>, * returns the empty string. * @param date * @return */ public static String getDateTimeRepresentation(Calendar date) { return null != date ? DatatypeConverter.printDateTime(date) : ""; } }