Implement format date to passed time