How can i get Date?
Dear friends,
using Date(java.util) class to i can get today date(getDate())
ok, consider today date is 2007-04-29. need to print...
print like "Today date is : 29"
my doubt is, how can i get the day after tomorrow date that is 2007-05-01
print like "Today date is : 01"
Thank You
[337 byte] By [
MCA134a] at [2007-11-27 2:28:45]

> can u give me some example?> > Thank youI don't know this API well, as I have not used it, but look at it here and if still stuck someone can help you: http://java.sun.com/j2se/1.4.2/docs/api/
use java.util.Calendar and java.text.SimpleDateFormat and everything is very easy:SimpleDateFormat format = new SimpleDateFormat("dd");
Calendar calendar = Calendar.getInstance();
System.out.println("Today date is: " + format.format(calendar.getTime()));
calendar.add(Calendar.DAY_OF_MONTH, 1);
System.out.println("Tommorow date is: " + format.format(calendar.getTime()));
thomas