Here you can find the source of gettomorrow(String today)
public static String gettomorrow(String today)
//package com.java2s; public class Main { public static String gettomorrow(String today) { String subYear = today.substring(0, 4); String subMonth = today.substring(5, 7); String subDay = today.substring(8, 10); Long LongDay = new Long(subDay); long longDay = LongDay.longValue(); if (longDay != 30) { longDay++;// w ww . j a va 2 s . co m } String tomorrow; if (longDay < 10) { tomorrow = subYear + "-" + subMonth + "-" + "0" + longDay; } else { tomorrow = subYear + "-" + subMonth + "-" + longDay; } return tomorrow; } }