Use moment to parse JS date for graph.