Android Date Format changeDateToFormatString(Date fecha, String pattern)

Here you can find the source of changeDateToFormatString(Date fecha, String pattern)

Description

change Date To Format String

License

Apache License

Declaration

public static String changeDateToFormatString(Date fecha, String pattern) 

Method Source Code

//package com.java2s;
//License from project: Apache License 

import java.text.DateFormat;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    public static String changeDateToFormatString(Date fecha, String pattern) {
        DateFormat formato = new SimpleDateFormat(pattern);
        return formato.format(fecha);
    }//from  w  ww .  j a v a2 s.  c o m
}

Related

  1. now(String dateFormat)
  2. getLongFriendlyDate(Date dt)
  3. getMainClockString(Date utcDate)
  4. currentDateToString(String format)
  5. dateToString(Date paramDate, String paramString)
  6. createName(String format, long dateTaken)
  7. formatDate(Date d)
  8. formatterDate(Date date)