I'm using Apache Axis to communicate with a web service written in .Net.
One of the functions in that WS has special handling when it encounters
DateTime.MinDate
DateTime.MinDate
xsd:dateTime
Calendar
new GregorianCalendar(1 ,1 ,1);
calendar.setTime(new Date(0))
<endDate xsi:type="xsd:dateTime">0001-01-01T00:00:00.000Z</endDate>
The following will create a GregorianCalendar object that will serialize to the equivalent
of DateTime.MinValue
.
GregorianCalendar gc=new GregorianCalendar(1,0,1);
gc.setTimeZone(TimeZone.getTimeZone("GMT-0"));
Note the following: