Use moment to format dates. Possible fix for ios7 safari invalid date issue.