Kotlin parsing date which is in format – Jan 1 2023 12:00AM to 2023-01-01 00:00:00.0
It appears that Kotlin is very specific regarding the formats of Date. I am receiving a string in this "Jan 1 2023 12:00AM"
and wanted to convert it into this "2023-01-01 00:00:00.0"
format. I looked around but couldn’t find a solution.
Kotlin parsing date which is in format – Jan 1 2023 12:00AM to yyyy-MM-dd HH:mm:ss.Z
It appears that Kotlin is very specific regarding the formats of Date. I am receiving a string in this "Jan 1 2023 12:00AM"
and wanted to convert it into this "yyyy-MM-dd HH:mm:ss.Z"
format. I looked around but couldn’t find a solution.