0

Below code i am trying to convert timestamp and Date Time format

var d = new Date(637181249816089920);
console.log("dd",d)
Mesut Akcan
  • 899
  • 7
  • 19
anand
  • 1
  • https://stackoverflow.com/questions/19485353/function-to-convert-timestamp-to-human-date-in-javascript – Shubham Nagota Feb 24 '20 at 09:38
  • 1
    [`Date.prototype.toLocaleString()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toLocaleString) – Yevhen Horbunkov Feb 24 '20 at 09:42
  • sample code if i get from you guys – anand Feb 24 '20 at 09:46
  • 1
    Does this answer your question? [Function to convert timestamp to human date in javascript](https://stackoverflow.com/questions/19485353/function-to-convert-timestamp-to-human-date-in-javascript) – overcomer Feb 24 '20 at 09:47
  • if total number of count is 13 like 1382086394000 then it will work but my number is 18 count 637181249816089920 then it is not converting let me know – anand Feb 24 '20 at 09:48
  • Read [MDN: `Date`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date). There is a limit in what timestamps are supported. Why would you even need dates that are hundreds of thousands of years from now? – str Feb 24 '20 at 10:00
  • yes i need date time year months – anand Feb 24 '20 at 10:16

0 Answers0