Java has builtin Date Class , we Just create its instance and then generate it with the help of tostring() method.
Source Code
package com.ancodingpoint.www; import java.util.Date; import java.util.Scanner; public class Find_Date { public static void main(String[] args) { Date date = new Date (); // java has buliting Date class System.out.println(" This Method will show current Date & Time \n " + date.toString()); } }
very good ideas.. i've read this and i learn new things .. FOR THOSE who doesnt visit this website you should try to read.. tnks
ReplyDelete