eu.future.earth.gwt.client.DateParser Maven / Gradle / Ivy
package eu.future.earth.gwt.client;
public class DateParser {
public static boolean testParsable(String one, String two) {
char[] chars = one.toCharArray();
char[] form = two.toCharArray();
for (int i = 0; i < form.length; i++) {
if (form[i] == '-' || form[i] == '/') {
if (form[i] != chars[i]) {
return false;
}
} else {
if (form[i] == chars[i]) {
return false;
}
}
}
return true;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy