Obj :: *是什么意思? 叫什么?
fun String.isLessThanEndDate(toDate:String):Boolean {
val dfDate = SimpleDateFormat("dd MMM, yyyy", Locale.ENGLISH)
var result = false
try
{
result = dfDate.parse(this).before(dfDate.parse(toDate)) || dfDate.parse(this) == dfDate.parse(toDate)
}
catch (e:ParseException) {
e.printStackTrace()
}
return result
}