Reputation: 1754
I have the following code:
public class Objc{
OffsetDateTime purchaseDate = new OffsetDateTime();
// getter/setter
}
....
String buyDate = ......;
objc.setPurchaseDate (new OffsetDateTime(buyDate));
How to convert String to OffsetDateTime
object properly?
Upvotes: 0
Views: 101