Java Hour Format format(Date date)

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

Description

Format.

License

Open Source License

Parameter

Parameter Description
date <br> <div class="de"> date</div> <div class="fr"> date</div> <div class="it"> date</div>

Return

the string

Declaration

public static String format(Date date) 

Method Source Code

//package com.java2s;
/*******************************************************************************
 *
 * The authorship of this code and the accompanying materials is held by medshare GmbH, Switzerland.
 * All rights reserved. http://medshare.net
 *
 * Project Team: https://sourceforge.net/p/ehealthconnector/wiki/Team/
 *
 * This code is are made available under the terms of the Eclipse Public License v1.0.
 *
 * Accompanying materials are made available under the terms of the Creative Commons
 * Attribution-ShareAlike 4.0 License.// w w  w.  j  a v  a 2  s .  c  o m
 *
 * Year of publication: 2015
 *
 *******************************************************************************/

import java.text.SimpleDateFormat;
import java.util.Date;

public class Main {
    /**
     * <div class="en">Format.</div> <div class="de"></div> <div class="fr"></div>
     * <div class="it"></div>
     * 
     * @param date
     * <br>
     *          <div class="de"> date</div> <div class="fr"> date</div> <div
     *          class="it"> date</div>
     * @return the string
     */
    public static String format(Date date) {
        SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss");
        return sdf.format(date);
    }
}

Related

  1. format(Date date)
  2. format(Date date)
  3. format(Date date)
  4. format(Date date)
  5. format(Date date)
  6. format(Date date)
  7. format(Date date)
  8. format(Date date)
  9. format(Date date)