Java Date Long Format getLongDateCurr()

Here you can find the source of getLongDateCurr()

Description

get Long Date Curr

License

Open Source License

Declaration

public static String getLongDateCurr() 

Method Source Code


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

import java.util.Date;
import java.util.TimeZone;

import java.text.DateFormat;
import java.text.SimpleDateFormat;

public class Main {
    public static String getLongDateCurr() {
        DateFormat dateFormat = new SimpleDateFormat("MM/dd/yy HH:mm");
        Date date = new Date();
        dateFormat.setTimeZone(TimeZone.getTimeZone("GMT"));
        return dateFormat.format(date);
    }// w w w.j a v  a  2 s .  c o  m
}

Related

  1. getLong(final Map map, final Object key)
  2. getLongDate(Date date)
  3. getLongDate(Date date)
  4. getLongDateByMidformat(String dateStr)
  5. getLongDateFormat(Date d)
  6. getLongDateFormatter()
  7. getLongDateStr(Date sDate)
  8. getLongDateString(Date date)