Usman Idzhami

import java.sql.Date
import kotlin.test.assertFalse
import kotlin.test.assertTrue

fun main(args: Array<String>) {
val start = Date.valueOf("2022-05-16")
val end = Date.valueOf("2022-05-18")
var range = start..end

var value_1 = Date.valueOf("2022-05-19") in range
var value_2 = Date.valueOf("2022-05-17") in range
println(value_1.toString())
println(value_2.toString())
}

Results :
value_1 : false
value_2 : true

--

--