Java Parse Date parseDate(Date date)

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

Description

parse Date

License

Open Source License

Declaration

public static Date parseDate(Date date) throws ParseException 

Method Source Code

//package com.java2s;

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

public class Main {
    public static Date parseDate(Date date) throws ParseException {
        String format = "dd/mm/yy";
        SimpleDateFormat formatter = new SimpleDateFormat(format);
        return formatter.parse(date.toString());
    }/*from   w  w  w . ja  va2s.c  om*/
}

Related

  1. parseDate(@Nonnull final String sFormat, @Nonnull final String sValue)
  2. parseDate(@Nonnull String stringDate)
  3. parseDate(@Nullable String value)
  4. parseDate(Date date)
  5. parseDate(Date date)
  6. parseDate(Date date)
  7. parseDate(Date date)