What is the best way to clone some DateTime
object (or assign it's value to another object)?
import org.joda.time.DateTime;
...
DateTime date = new DateTime();
DateTime cloneOfDate = ???
Just use :
cloneOfDate = date;
DateTime objects are immutable, you don't need to clone them.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With