Java Date Format Pattern getStringAcordFormat()

Here you can find the source of getStringAcordFormat()

Description

get String Acord Format

License

Open Source License

Parameter

Parameter Description
aDate a parameter

Declaration


public static String getStringAcordFormat() 

Method Source Code


//package com.java2s;

import java.text.SimpleDateFormat;

import java.util.Date;

public class Main {
    /**//  w  ww .ja v  a 2  s .co  m
     *
     * @param aDate
     * @return
     *
     */
    /*==================================================================*/
    public static String getStringAcordFormat() {
        SimpleDateFormat myFormatter = new SimpleDateFormat("yyyy-MM-dd'T'hh:mm:ss");
        int currentOffset = myFormatter.getTimeZone().getRawOffset();
        long diff = currentOffset + 18000000;
        Date currentDate = new Date(System.currentTimeMillis() - diff);
        String myFormattedDate = myFormatter.format(currentDate);
        return myFormattedDate;

    }
}

Related

  1. getMomentFormatter()
  2. getPooledSDF(String format)
  3. getSdf(String formatPattern)
  4. getSimpleDataFormattedFile(File file)
  5. getSortedTimetampFormat()
  6. getSupportedFormats()
  7. isEqual(String d1, String d2, String format)
  8. isValidFormat(String format, String value)
  9. log(String format, Object... args)