handle date formatting on fe