Adding date_trunc functionality