Java Date Format As formatDDMMYYYY(Date date)

Here you can find the source of formatDDMMYYYY(Date date)

Description

Datum formatieren analog zu "31122007).

License

Apache License

Parameter

Parameter Description
date .

Return

Nie null.

Declaration

public static String formatDDMMYYYY(Date date) 

Method Source Code


//package com.java2s;
// Licensed under the Apache License, Version 2.0 (the "License");

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    /**// ww w.  j a  v  a 2 s  .  c o  m
     * The Constant ddMMyyyy_DATE_FORMAT.
     */
    public static final DateFormat ddMMyyyy_DATE_FORMAT = new SimpleDateFormat("ddMMyyyy");

    /**
     * Datum formatieren analog zu "31122007).
     *
     * @param date .
     * @return Nie <code>null</code>.
     */
    public static String formatDDMMYYYY(Date date) {
        final String result = ddMMyyyy_DATE_FORMAT.format(date);
        return result;
    }
}

Related

  1. formatDateYMD(Object date)
  2. formatDateYyyymmddhhmmss(Date date)
  3. formatDatum(Date date, Locale locale)
  4. formatDay(Date date)
  5. formatDay(java.util.Date d)
  6. formatddMMyyyy(Date date)
  7. getDateAsISO8601String(Date date)
  8. getDateAsISO8601String(Date date)
  9. getDateAsISOTimestampString(Date timestamp)