How do I get today's date in java? I am actually using javamail to read messages. So i want to pick those messages from yest aftder 2 pm to today. How can I do that? Thanks, Vidhya
Joined: Sep 29, 2000
Date rightNow = new Date(); // Allocates a Date object and initializes it so that it represents the time at which it was allocated, measured to the nearest millisecond. or: Calendar rightNow = Calendar.getInstance();
"JavaRanch, where the deer and the Certified play" - David O'Meara
Joined: Jan 30, 2000
Let's try to keep the discussion for this one in one place. I'm closing this thread; follwups can go here. Thanks.