Tag Archives: Calendar

Week of Day String to INT

To change a Day of the week like Monday, Tuesday and so on to integer the use the following code:   public int dayNameComparison(String dayName) { java.text.DateFormatSymbols objDaySymbol = new java.text.DateFormatSymbols(); String symbolDayNames[] = objDaySymbol.getWeekdays(); for (int countDayname = 0; … Continue reading

Posted in Java | Tagged , , | Leave a comment

xsd:date maps to java.util.Calendar

My schema has an element of type xs:date, which jaxb maps to a java.util.Calendar. If I create a Calendar object with Calendar.getInstance(), it marshalls to “2003-11-24-05:00”. How can I get it to marshall to just “2003-11-24”? SOLUTION:Write a converter class … Continue reading

Posted in Web Services, WSDL | Tagged , , , , | Leave a comment