Here you can find the source of format(Date date)
Parameter | Description |
---|---|
date | <br> <div class="de"> date</div> <div class="fr"> date</div> <div class="it"> date</div> |
public static String format(Date date)
//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); } }