
com.connectifier.xeroclient.jaxb.DateAdapter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client Show documentation
Show all versions of client Show documentation
Xero API Java client library
The newest version!
package com.connectifier.xeroclient.jaxb;
import java.util.Calendar;
import java.util.Date;
import java.util.GregorianCalendar;
import javax.xml.bind.DatatypeConverter;
public class DateAdapter {
public static Date parseDateTime(String s) {
return DatatypeConverter.parseDate(s).getTime();
}
public static String printDateTime(Date dt) {
Calendar cal = new GregorianCalendar();
cal.setTime(dt);
return DatatypeConverter.printDate(cal);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy