Here you can find the source of formatShow(String queryDate)
public static String formatShow(String queryDate)
//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*/ }