0 Replies - 1422 Views - Last Post: 09 October 2012 - 09:36 PM Rate Topic: -----

#1 ayenbobo  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 09-October 12

convert int to date & time then calculate total date & time in

Posted 09 October 2012 - 09:36 PM

System.out.println("===============FROM=======================")
    System.out.println("Insert Day >> ");
    day = get_data.nextInt(); 
    System.out.println("Insert Month >>");
    month = get_data.nextInt();       
    System.out.println("Insert Year >>");   
    day = get_data.nextInt(); 
    System.out.println("Insert Hour >>");
    hour = get_data.nextInt();        
    System.out.println("Insert Minute >>");
    minute = get_data.nextInt();  

    System.out.println("================TO========================")
    System.out.println("Insert Day >> ");
    day2 = get_data.nextInt();     
    System.out.println("Insert Month >>");
    month2 = get_data.nextInt();      
    System.out.println("Insert Year >>");
    year2 = get_data.nextInt();        
    System.out.println("Insert Hour >>");   
    hour2 = get_data.nextInt();    
    System.out.println("Insert Minute >>");
    minute2 = get_data.nextInt();  



then display like this (from : 25/03/2011 04:00 to: 26/03/2011 14:00) after calculate the total day and time between 'from' and 'to' .

Is This A Good Question/Topic? 0
  • +

Page 1 of 1