Button to update datetime

I’m trying to update a date (helper) with a button (widget).
Whats wrong with this code?

show_name: true
show_icon: true
type: button
entity: input_datetime.test
tap_action:
  action: call-service
  service: input_datetime.set_datetime
  data:
    date: '{{ now().strftime(''%Y-%m-%d'') }}'
  target:
    entity_id: input_datetime.test
hold_action:
  action: more-info

Most core dashboard cards do not support templates. Use the tap action to call a script that sets the datetime. You can use templates in the script.