Extract DateUtil in the same way as is done in planner