Why, when a string of numbers of different lengths is passed Date in Javascript, sometimes it returns a Date object and sometimes an invalid date.
For instance:
new Date ('123456') → Tue Jan 01 123456 00:00:00 GMT + 0530
new Date ('1234567') → Invalid date
new Date ('999999') → Invalid date
, . , Xotic750, Javascript -100 000 000 100 000 000 01 1970 UTC. , "123456" , "1234567" "999999" .
, Date - . , , ..
Source: https://habr.com/ru/post/1675725/More articles:ASP.Net MVC Generates DNS Prefetch Tags - c #Apache Spark OutOfMemoryError (HeapSpace) - apache-sparkWhere is the “Enable Library Download” option on Android? - androidPython 3.4 doesn't recognize package - pythonis there any text editor i can use for vue.js? - text-editorСтранная ошибка с датой, "непроверенный незаконный доступ" - javascriptHow to get displayName for working with Jenkins multi-channel pipeline - jenkinsLaravel Passport Token Length - oauth-2.0F # Create a bitmap from an exception-generated memory stream - f #Matlab: replace the element in the matrix with a minimum of the row, excluding yourself - matrixAll Articles