0

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?

Peter Penzov
  • 1,126
  • 134
  • 430
  • 808
  • [Convert string to OffsetDateTime in Java](https://stackoverflow.com/questions/44297939/convert-string-to-offsetdatetime-in-java) – Abra Aug 21 '23 at 17:22
  • [String to OffsetDateTime parse in java](https://stackoverflow.com/questions/54734921/string-to-offsetdatetime-parse-in-java) – Abra Aug 21 '23 at 17:23
  • [OffsetDateTime parsing](https://stackoverflow.com/questions/38048032/offsetdatetime-parsing) – Abra Aug 21 '23 at 17:24
  • I checked the post but I see multiple solutions. Can you paste here the correct one, please? – Peter Penzov Aug 21 '23 at 17:36

0 Answers0