use moment to convert date to timestamp