C Creideiki Active Member Licensed User Longtime User Sep 29, 2022 #1 Hi, I need a iso date string. This should be B4X: DateTime.DateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX" But this works only in newer Android versions. In older versions (e.g. 5.0, 6.0) it crashes (Unknown pattern character 'X'). I now replace 'XXX' with '+02:00' in the catch, but that seems a bit clumpsy... Is there a better way to create the time zone in older Android versions? Thanks
Hi, I need a iso date string. This should be B4X: DateTime.DateFormat = "yyyy-MM-dd'T'HH:mm:ss.SSSXXX" But this works only in newer Android versions. In older versions (e.g. 5.0, 6.0) it crashes (Unknown pattern character 'X'). I now replace 'XXX' with '+02:00' in the catch, but that seems a bit clumpsy... Is there a better way to create the time zone in older Android versions? Thanks
Erel B4X founder Staff member Licensed User Longtime User Sep 29, 2022 #2 Try: B4X: "yyyy-MM-dd'T'HH:mm:ss.SSSZ" SimpleDateFormat (Java Platform SE 8 ) Upvote 0
C Creideiki Active Member Licensed User Longtime User Sep 29, 2022 #3 Hi Erel, I see... it works with older versions, but gives me +0200 instead of +02:00, which seem to be allowed in ISO 8601. So I have to check with the other software if that work together. Thank you. Upvote 0
Hi Erel, I see... it works with older versions, but gives me +0200 instead of +02:00, which seem to be allowed in ISO 8601. So I have to check with the other software if that work together. Thank you.