Moved format date into common space