Migration to datetime with view formatting