Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

E501

For the complete documentation index optimized for AI agents, see llms.txt.

Invalid Date

Example

This error occurs when you provide a date value that cannot be parsed or is in an invalid format.

In this example, the date value is invalid and cannot be parsed.

Query addEvent() =>
    AddN<Event>({date: "2023-99-99"})
N::Event {
    date: Date,
}

Solution

Ensure the date value is in the correct format.

Query addEvent() =>
    AddN<Event>({date: "2023-01-01"})