convert string to date kotlin api 19 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