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