Java Date to String date2Str(Date date, String format)

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

Description

date Str

License

Open Source License

Declaration

public static String date2Str(Date date, String format) 

Method Source Code

//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {

    public static String date2Str(Date date, String format) {
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        return sdf.format(date);
    }/*from ww w . ja v a 2  s.  co m*/
}

Related

  1. Date2Str(Date date)
  2. date2Str(Date date)
  3. date2Str(Date date)
  4. date2Str(Date date, String dateFormat)
  5. date2Str(Date date, String format)
  6. date2Str(Date date, String partten)
  7. date2Str(Date date, String pattern)
  8. date2Str(Date value)
  9. date2Str(final Date date, final String dateFormat)