All Downloads are FREE. Search and download functionalities are using the official Maven repository.

eu.future.earth.gwt.client.DateParser Maven / Gradle / Ivy

There is a newer version: 3.3
Show newest version
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