Add datetrunc and datepart functions to Metis