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

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

The newest version!
package eu.future.earth.gwt.client;

public class ClientUiDateParser {

	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] == '/' || 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