Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package console;
- import java.text.SimpleDateFormat;
- import java.util.Calendar;
- public class MainUtil {
- public static void main(String[] args) {
- // TODO Auto-generated method stub
- DueDateUtil dateNow = new DueDateUtil();
- String dateNowA = dateNow.getDueDateFromDate("20161103");
- String dateNowB = dateNow.getDueDateFromDate("20161105");
- String dateNowC = dateNow.getDueDateFromDate("20161107");
- String dateNowD = dateNow.getDueDateFromDate("20161120");
- String dateNowE = dateNow.getDueDateFromDate("20161122");
- System.out.println();
- System.out.println("HASIL " + dateNowA + " <==> 20161103 ");
- System.out.println();
- System.out.println("HASIL " + dateNowB + " <==> 20161105 ");
- System.out.println();
- System.out.println("HASIL " + dateNowC + " <==> 20161107 ");
- System.out.println();
- System.out.println("HASIL " + dateNowD + " <==> 20161120 ");
- System.out.println();
- System.out.println("HASIL " + dateNowE + " <==> 20161122 ");
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment