In my JavaScript code, I have the following snippet:
//obj.uploadDate = 1466679630387
temp = new Date(obj.uploadDate);
uploadDate = temp.toString('yyyy-MM-dd HH:mm:ss');
Unexpectedly, uploadDate
is returning as NaN-NaN-NaN NaN:NaN:NaN
instead of a properly formatted date.
Can you help identify what might be causing this issue?