Check out example codes for "how to convert millisecond to second to date momentjs". It will help you in understanding the concepts better.

Code Example 1

var day = moment(1318781876406);

Learn ReactJs, React Native from akashmittal.com