I have a 14-digit timestamp
(Format: "YYYYMMDDhhmmss") which i want to convert to Instant
object.
What is correct way to do it?
Something like:
import java.time.Instant
val t1 = "20010531021254"
Instant.parse(t1) //Doesn't work
//What i'de like to receive:
res0: java.time.Instant = 2001-05-31T02:12:54.000