Java SQL Date Parse parseDateE(Date dt)

Here you can find the source of parseDateE(Date dt)

Description

Parse a java.sql.Date to String

License

Open Source License

Parameter

Parameter Description
ds a parameter

Exception

Parameter Description
ParseException an exception

Declaration

public static String parseDateE(Date dt) throws ParseException 

Method Source Code


//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);
    }
}

Related

  1. parseDate(String s)
  2. parseDate(String strDate)
  3. parseDate(String strFormat, String dateValue)
  4. parseDate(String value, String format)
  5. parseDate2(Date date, String pattern)
  6. parseDateString(String tmp, String format)
  7. parseDateYYMMddHHmm(java.util.Date date)
  8. parseDateYYMMddHHmmss1(Date date)
  9. parseDateyyyy_MM_DD(String ds)