Java Date String Format formatShow(String queryDate)

Here you can find the source of formatShow(String queryDate)

Description

format Show

License

Open Source License

Declaration

public static String formatShow(String queryDate) 

Method Source Code

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

public class Main {
    public static String formatShow(String queryDate) {

        String year = queryDate.substring(0, 4);
        year = year + "-";
        String month = queryDate.substring(4, 6);
        month = month + "-";
        String day = queryDate.substring(6, 8);

        return year + month + day;

    }/*from  ww w  . j a va2s .c  o  m*/
}

Related

  1. formatIso8601ToSimpleDate(String iso8601)
  2. formatISODate(String date)
  3. formatMinDateForShowWith_(String str)
  4. formatQuery(String queryDate)
  5. formatShort(String strDate)
  6. formatTweetDate1(String date)