How do we represent Date in kotlinx serializable model in common code?
s
Sergio Casero
11/14/2019, 7:01 AM
For date I always use
long
d
Dmitri Sh
11/14/2019, 3:41 PM
the date in the service response is in this format - /Date(1571140800000)/ - so long won't work. I guess have to use String and then platform specific to convert to appropriate dates.
Dmitri Sh
11/14/2019, 5:51 PM
so did just that, string and then created extensions in Kotlin and swift to parse and convert to appropriate date types