Skip to main content

Multiple Datetime Formats in Java and Android

· One min read

We have now added support for multiple datetime formats in our Java and Android SDKs. The following formats are supported:

  • RFC1123 Datetime: Mon, 15 Jun 2009 20:45:30 GMT
  • RFC3339 Datetime: 2016-03-13T12:52:32.123Z
  • Unix Timestamp: 1480809600

Implementation details

Our Java and Android SDKs use the joda-time library to provide this support as it is compatible with older versions of Java (6 and 7) as well as newer ones. The classes used from the joda-time library are as follows:

  • org.joda.time.DateTime for DateTime types
  • org.joda.time.LocalDate for Date types

Additional details

Multiple DateTime formats are also supported in these languages.

You can find more information about supported datetime formats as well as other types here.


DateTime implementation in our SDKs can help you:

  • Focus on building the application logic instead of worrying about date/time serialization/deserialization
  • Handle different formats of datetime, according to what your API requires, without writing any code for it
  • Save time zone specific information (if required)
  • Avoid the hassle of configuring and consuming a 3rd party library for datetime manipulation