public static String printDateValue(Calendar value) {
    """
	Write a {@link Calendar} value into XML output.
	
	@param value value to write
	@return XML string
	@throws IllegalArgumentException if a validation error occurred
    """
        if (value == null)
            throw new IllegalArgumentException("Can't print empty date value!");

        return new SimpleDateFormat("dd-MM-yyyy hh:mm:ss", Locale.ENGLISH)
                .format(value.getTime());
    }
public static String printDateValue(Calendar value) {
        if (value == null)
            throw new IllegalArgumentException("Can't print empty date value!");

        return new SimpleDateFormat("dd-MM-yyyy hh:mm:ss", Locale.ENGLISH)
                .format(value.getTime());
    }
public static String printDateValue ( Calendar value ) { if ( value == null ) throw new IllegalArgumentException ( "Can't print empty date value!" ) ; return new SimpleDateFormat ( "dd-MM-yyyy hh:mm:ss" , Locale . ENGLISH ) . format ( value . getTime ( ) ) ; }
Write a {@link Calendar} value into XML output.

@param value value to write
@return XML string
@throws IllegalArgumentException if a validation error occurred
Write a { @link Calendar } value into XML output .