java program to get the current date without timestamp
Posted
by Lakshman
on Stack Overflow
See other posts from Stack Overflow
or by Lakshman
Published on 2010-05-10T20:49:10Z
Indexed on
2010/05/10
20:54 UTC
Read the original article
Hit count: 260
java
I need a java program to get the current date without timestamp
Date d = new Date();
gives me date and timestamp But i need only date, without timestamp. I use this date to compare with another date object that does not have timestamp.
on printing
System.out.println("Current Date : " + d)
of d it should print May 11 2010 - 00:00:00 .
© Stack Overflow or respective owner