code: public XMLGregorianCalendar newXMLGregorianCalendarDate(
              final int year,
              final int month,
              final int day,
              final int timezone) {
  
          return newXMLGregorianCalendar(
                  year,
                  month,
                  day,
                  DatatypeConstants.FIELD_UNDEFINED, // hour
                  DatatypeConstants.FIELD_UNDEFINED, // minute
                  DatatypeConstants.FIELD_UNDEFINED, // second
                  DatatypeConstants.FIELD_UNDEFINED, // millisecond
                  timezone);
      }
docs: <p>Create a Java representation of XML Schema builtin datatype <code>date</code> or <code>g*</code>.</p>
  
  <p>For example, an instance of <code>gYear</code> can be created invoking this factory
  with <code>month</code> and <code>day</code> parameters set to
  {@link DatatypeConstants#FIELD_UNDEFINED}.</p>
  
  <p>A {@link DatatypeConstants#FIELD_UNDEFINED} value indicates that field is not set.</p>
  
  @param year of <code>XMLGregorianCalendar</code> to be created.
  @param month of <code>XMLGregorianCalendar</code> to be created.
  @param day of <code>XMLGregorianCalendar</code> to be created.
  @param timezone offset in minutes. {@link DatatypeConstants#FIELD_UNDEFINED} indicates optional field is not set.
  
  @return <code>XMLGregorianCalendar</code> created from parameter values.
  
  @see DatatypeConstants#FIELD_UNDEFINED
  
  @throws IllegalArgumentException If any individual parameter's value is outside the maximum value constraint for the field
  as determined by the Date/Time Data Mapping table in {@link XMLGregorianCalendar}
  or if the composite values constitute an invalid <code>XMLGregorianCalendar</code> instance
  as determined by {@link XMLGregorianCalendar#isValid()}.