public static String getDateInFormatYMD(Calendar date) {
		String month = date.get(Calendar.MONTH) + "";
		String day = date.get(Calendar.DAY_OF_MONTH) + "";

		if (month.length() < 2) {
			month = "0" + month;
		}
		if (day.length() < 2) {
			day = "0" + day;
		}

		String text = date.get(Calendar.YEAR) + "-" + month + "-" + day;
		String result = "";
		for (String part : RUtilities.implodeList(text, '-')) {
			if (result.length() > 0) {
				result += ".";
			}
			if (part.length() < 2) {
				result += "0" + part;
			} else {
				result += part;
			}
		}
		return result;
	}