Convert from AgMIP standard date string (YYMMDD) to a custom date string

@param agmipDate AgMIP standard date string
@param format Destination format

@return a formatted date string or {@code null}
2082
public synchronized static String formatAgmipDateString(String agmipDate, String format) {
        try {
            SimpleDateFormat fmt = new SimpleDateFormat(format);
            Date d = dateFormatter.parse(agmipDate);
            return fmt.format(d);
        } catch (Exception ex) {
            return null;
        }
    }
923997
public static String formatUnixTimestampInMills(Date date) {
        if (date == null)
            return null;
        BigDecimal dateValue = BigDecimal.valueOf(date.getTime());
        return dateValue.toPlainString();
    }
1363380
public static String format(String format) {

        if (format == null) {
            format = DEFAULT_FORMAT;
        } else {
            if (format.contains("M")) {
                format = format.replace("M", "m");
            }

            if (format.contains("Y")) {
                format = format.replace("Y", "y");
            }

            if (format.contains("D")) {
                format = format.replace("D", "d");
            }
        }
        return format;
    }
1329368
protected String dateToString(LocalDate localDate, String format) {
        return localDate == null ? "----------" : localDate.toString(format);
    }
570099
public String convertDateToString(final Date date) {
        if (date == null) {
            return null;
        }
        return dateFormat.get().format(date);
    }
1040503
public static String dateToIsoString(Date inputDate) {
		DateFormat dateStringFormat = new SimpleDateFormat("yyyy-MM-dd");
		return dateStringFormat.format(inputDate);
	}
960118
public static String date2Str(Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }
224118
@Override
  public final String toIso8601DateNoTz(final Date pDate,
    final Map<String, Object> pAddParam) throws Exception {
    return this.dateNoTzFormatIso8601.format(pDate);
  }
211883
private String formatSecondaryDate(@NonNull Calendar date) {
        if(secondaryDateFormat == null)
            return DateUtils.formatDateTime(getContext(), date.getTimeInMillis(),
                    DateUtils.FORMAT_SHOW_DATE | DateUtils.FORMAT_NUMERIC_DATE);
        else
            return secondaryDateFormat.format(date.getTime());
    }
493406
public static Date getDateParameter(final HttpServletRequest request, final String name, final String format) {
		String value = request.getParameter(name);
		if (StringUtils.isBlank(value)) {
			return null;
		}
		return new Date(DateTimeFormat.forPattern(format).parseMillis(value));
	}
1177143
@MapMethod
    public Date parseDate(String d, String format){
        return Objects.parseDate(d,format);
    }
264517
public static String formatDate(Date d) {
    return d == null ? null : DATE_FORMAT.format(d);
  }
856055
public static String formatTimestamp(@Nullable Date date) {
        return (date != null) ? date.toInstant().toString() : null;
    }
87288
@Override
  public final String toDateString(final Date pDate,
    final Map<String, Object> pAddParam) throws Exception {
    return this.dateFormat.format(pDate);
  }
1149927
public static String format(final Date date, final String format) {
		return format(date.getTime(), format);
	}
236677
public static String format(final Date date, String format) {

		if (date != null) {

			if (StringUtils.isBlank(format)) {

				format = DateProperty.getDefaultFormat();

			}

			return new SimpleDateFormat(format).format(date);
		}

		return null;

	}
168850
private String formatDate(Date value)
   {
      return (value == null ? null : m_formats.getDateFormat().format(value));
   }