Here you can find the source of parseDateE(Date dt)
Parameter | Description |
---|---|
ds | a parameter |
Parameter | Description |
---|---|
ParseException | an exception |
public static String parseDateE(Date dt) throws ParseException
//package com.java2s; import java.sql.Date; import java.text.ParseException; import java.text.SimpleDateFormat; public class Main { public final static String DATE_FORMAT_E = "E"; /**/*from www.java2 s. c o m*/ * Parse a java.sql.Date to String * * @param ds * @return * @throws ParseException */ public static String parseDateE(Date dt) throws ParseException { return new SimpleDateFormat(DATE_FORMAT_E).format(dt); } }