I'm trying to pull the date in a date component into a query to only pull the data from beyond a certain date that the users enters but I'm getting the most bizarre error:
Trying here with a literal string in the YYYY-DD-MM format with double quotes around it is successful:
Trying again with the startDateRange.value which has a literal value of "YYYY-DD-MM"
I've tried CAST(), moment() and a couple other tricks. Even tried to SET @datevalue as a variable to be maybe easier to work through but it seems like I'm running into a brick wall with these odd quotes. The error references an earlier line but I can't suspect that as the culprit given a normal string works fine.