cmps312f21 / cmps312-content

Lecture Material
11 stars 5 forks source link

How to get invoice details based on from date to date #17

Open Abderrahmane-am1803234 opened 3 years ago

Abderrahmane-am1803234 commented 3 years ago

is there any idea how to filter data from date to date @erradi

erradi commented 3 years ago

Using .filter provided by the list. e.g., val nums = listOf(3, 1, 2, 4) val result = nums.filter { it >=1 && it <=3 } println(result)

Note that you can compare dates using >= and <= operators.