Android Date Format toString(Date date, String format)

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

Description

to String

License

Open Source License

Declaration

public static String toString(Date date, String format) 

Method Source Code

//package com.java2s;
//License from project: Open Source License 

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String toString(Date date, String format) {
        SimpleDateFormat outputFormat = new SimpleDateFormat(format);
        return outputFormat.format(date);
    }//  www . java2  s  . co m
}

Related

  1. getUtcTimeStringFromDate(Date date)
  2. timestampToISO8601(Date aDate)
  3. toDateString(Date value)
  4. toDateTimeString(Date value)
  5. toRelativeDateString(Date value)
  6. toString(Date value, String format)
  7. toStringFR(Date date)
  8. toStringUS(Date date)
  9. toTimeString(Date value)