• This looks like very odd. Why do you need to convert datetime to numeric?