Write sample code to print date in dd mm yy

Showing Answers 1 - 4 of 4 Answers

vivek agnihotri

  • Sep 7th, 2006
 

we need to write System.out.println(dd+" "+mm+" "+yy);

  Was this answer useful?  Yes

Praveen

  • Oct 17th, 2006
 

java.util.Date date=new java.util.Date();System.out.println("Date formate of "+date);

  Was this answer useful?  Yes

Ajaykumar.sr

  • Dec 30th, 2006
 

Calendar cal = Calendar.getInstance();int mon = cal.get(Calendar.MONTH);int day = cal.get(Calendar.DAY_OF_MONTH);int year = cal.get(Calendar.YEAR);System.out.println(day + " / " + mon + "/" year);

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions