Here you can find the source of date2String(Date value)
Parameter | Description |
---|---|
value | Date |
public static String date2String(Date value)
//package com.java2s; /*//from w w w. j av a 2 s .c o m * Copyright (C) 2010 Viettel Telecom. All rights reserved. * VIETTEL PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ import java.text.SimpleDateFormat; import java.util.Date; public class Main { /** * * @param value Date * @return String */ public static String date2String(Date value) { if (value != null) { SimpleDateFormat date = new SimpleDateFormat("yyyy/MM/dd"); return date.format(value); } return ""; } }