Here you can find the source of toUrlDate(String date)
public static String toUrlDate(String date)
//package com.java2s; //License from project: Apache License public class Main { public static String toUrlDate(String date) { String[] s = date.split("-"); String da = s[2] + "-" + s[1] + "-" + s[0]; return da; }/*from w w w. jav a 2s . c om*/ }