Date transformation for KNN
Find the time difference in an appropriate granularity(/ies):

daysDiffFeature = diffInDays(dateCol)
hoursDiffFeature = diffInHours(dateCol)


Then you can use whatever distance based metrics/calculations are required in your algorithsm