Allow a Date type for Stimulus 2.0 Values API?

I just wanted to suggest the Date type to be added as one of the types for the new Values API.

I’ve got a Stimulus controller that renders a GitHub-like activity calendar. I use Stimulus Values to specify the start date and end date. Right now now I need to specify them as String types and manually convert them to Date objects using something like new Date(this.endDateValue) it would be great if Stimulus could take care of this, similar to how it does for other types.

1 Like

I realize JavaScript dates suck, but it’d be really awesome if this were added (I assume the reason it hasn’t yet is that there are headaches beyond normal date parsing shenanigans).