datepicker date format vs MySQL date column
-
I have a dropdown field (fieldname30) and a date picker field (fieldname1).
I have a table like:
User | Date John 2019-05-06 Mike 2019-03-13 Frank 2019-05-08I want fieldname30 to display the User depending on the date picked on fieldname1.
So in the fieldname30 query, I have:
Select User as value, User as text from table WHERE Date = <%fieldname1%>.
However, despite selecting the corresponding dates, fieldname30 is always blank. I’ve set the date format of the datepicker to use dashes (‘-‘), the date parts in the Date column are also dash separated. What is wrong?
I’ve wrote similar logic for fields where values displayed are based on non date fields and those seem to work fine.
The topic ‘datepicker date format vs MySQL date column’ is closed to new replies.