proper formatting date times when rendering