use this to convert the date string to UNIX timestamp
val date = SimpleDateFormat("dd-MM-yyyy").parse("14-02-2018")
println(date.time)
use this to convert the date string to UNIX timestamp
val date = SimpleDateFormat("dd-MM-yyyy").parse("14-02-2018")
println(date.time)