-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to convert string in format "yyyy-mm-dd hh:mm:ss" to localDateTime? #128
Comments
Sorry, we don't have such functionality currently. There are many requests for it though (
formatters
|
The format looks very similar to the ISO format of LocalDateTime, except that the date and time components are separated with a space instead of
|
Can this issue be solved by giving an optional format string parameter to |
You can actually use the date time formatter to parse the string then use the local date to parse into your requirements |
Except that's Java. This library doesn't have |
I am getting a date in a format like this "2021-03-26 22:02:53" from the API which is not ISO format, and I created a custom serializer for it but I am getting an error.
I also do not want to use ISO format, and I want to send back the date as "yyyy-mm-dd hh:mm:ss".
Since We can not use Java.Date in Kotlin multiplatform, what is the proper solution to serialize date format like this?
Thanks
The text was updated successfully, but these errors were encountered: