Invalid time value error
See original GitHub issueHi, I have intalled angular-calendar and all its dependencies and after using
<mwl-calendar-month-view
[viewDate]="viewDate"
[events]="events">
</mwl-calendar-month-view>
I get some errors with the same message "Invalid time value at Date.toISOString " at this line from the angular-calendar.js
var trackByWeekDayHeaderDate = function (index, day) { return day.date.toISOString(); };
Minimal reproduction of the problem with instructions
Screenshots and it seems that the problem is here
Versions
@angular/core
: 5.0.0angular-calendar
:0.24.1- Browser name and version: Chrome
What do I do wrong?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (3 by maintainers)
Top Results From Across the Web
RangeError: Invalid time value - javascript - Stack Overflow
This exception occurs when the Date object contains an invalid date. new Date('undefined').toISOString(). In this example the Date object ...
Read more >RangeError: Invalid time value in JavaScript | bobbyhadz
The "Uncaught RangeError: Invalid time value" error occurs when calling a method on an invalid date, e.g. new Date('asdf').toISOString() .
Read more >RangeError: invalid date - JavaScript - MDN Web Docs
The JavaScript exception "invalid date" occurs when a string leading to an invalid date has been provided to Date or Date.parse() .
Read more >I get an error "RangeError: Invalid time value"
I am getting the same error but nothing was changed on our server so it's not like it was something that updated on...
Read more >Invalid time value for field - - Common causes and quick fixes
Invalid time value for field - - Common causes and quick fixes. Prevent & resolve issues, cut down administration time & hardware costs....
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This error is triggered when passing an invalid date to the calendar (type
new Date('invalid').toISOString()
in the chrome console and you’ll see), my guess is that the value you’re passing toviewDate
is an invalid date.I’m getting the exact same error after initial setup, where would you suggest I put that line? When I put it into my main, it says this.viewDate is invalid.