[fix] #86 add support datetime for max and min