Java Parse Date parseDate(Date date, String format)

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

Description

parse Date

License

Open Source License

Declaration

public static String parseDate(Date date, String format) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String parseDate(Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }// w ww .ja  va2s. c o  m
}

Related

  1. parseDate(Date date)
  2. parseDate(Date date)
  3. parseDate(Date date)
  4. parseDate(Date date)
  5. parseDate(Date date, int style, Locale local, boolean withTime)
  6. parseDate(Date date, String pattern)
  7. parseDate(DateFormat df, String dateStr)
  8. parseDate(DateFormat f, String date)
  9. parseDate(final Date date)