public static long getDate(String buffer) {
		if (buffer != null) {
			buffer = buffer.trim();
			for (int i = DateFormat.FULL; i <= DateFormat.SHORT; i++) {
				try {
					return DateFormat.getDateInstance(i).parse(buffer).getTime();
				} catch (Exception exception) {
					// Ignore
				}
			}
		}
		return System.currentTimeMillis();
	}