How do I get the current date and time in Java?
I am looking for something that is equivalent to DateTime.Now from C#.
DateTime.Now
import org.joda.time.DateTime; DateTime now = DateTime.now();