Java Long Number to Date formatDate(long date, String langStr)

Here you can find the source of formatDate(long date, String langStr)

Description

format Date

License

Open Source License

Declaration

public static String formatDate(long date, String langStr) 

Method Source Code


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

import java.text.DateFormat;

import java.text.SimpleDateFormat;
import java.util.Locale;

public class Main {
    public static String formatDate(long date, String langStr) {
        DateFormat df = SimpleDateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL,
                Locale.forLanguageTag(langStr));
        return df.format(date);
    }/*from   ww  w  . ja  v a  2s. co  m*/
}

Related

  1. formatDate(long date)
  2. formatDate(long date)
  3. formatDate(long date)
  4. formatDate(Long date, String fmt)
  5. formatDate(long date, String format)
  6. formatDate(long dateValue)
  7. formatDate(long epochMillis)
  8. formatDate(long millis)
  9. formatDate(long millis)