Here you can find the source of formatQuery(String queryDate)
public static String formatQuery(String queryDate)
//package com.java2s; //License from project: Open Source License public class Main { public static String formatQuery(String queryDate) { String str[] = queryDate.split("-"); String year = str[0];//from w w w .j a v a 2 s.c o m String month = str[1]; String day = str[2]; return year + month + day; } }