I am trying to use the below to determine a warranty status Always comes up inactive...
case 'Status'
when current_date between w.start_date and w.end_date then 'Active'
else 'Inactive'
end
Tried this per recommendation:
case 'Status'
when date('now') between w.start_date and w.end_date then 'Active'
else 'Inactive'
end as status
still nothing.. looking at the data in the db and format is YYYY-MM-DD
Even tried wrapping the columns in date() format..
This shouldn't be brain surgery...
I do notice that when I export the results to excel the warranty dates are formatted with / and the current date is not...
anyone have any clues?