Move date formatting to angular