android kotlin convert string to date code example
Example: string to date kotlin
val l = LocalDate.parse("14-02-2018", DateTimeFormatter.ofPattern("dd-MM-yyyy"))
val unix = l.atStartOfDay(ZoneId.systemDefault()).toInstant().epochSecond
val l = LocalDate.parse("14-02-2018", DateTimeFormatter.ofPattern("dd-MM-yyyy"))
val unix = l.atStartOfDay(ZoneId.systemDefault()).toInstant().epochSecond