Create file + hour and date

Is there a way to add a syntx that will make this automation make a file with the date and hour taken?


action:

- service: camera.snapshot

data:

filename: /config/www/tmp/snapshot-reolink.jpg

target:

entity_id: camera.cam_gate_sub

- service: notify.mobile_app_lior_s_cell

data:

message: "Car get open "

title: The car gate is open for more than 5 min - it will be closed in 1 minute

data:

image: >-

https://************.ui.nabu.casa/local/tmp/snapshot-reolink.jpg

Absolutely.

The camera documentation shows an example. Just change the strftime to the format you want.
Camera - Home Assistant (home-assistant.io)

thank you! I’m really a beginner with all the syntx issue
can you please edit the order as I should use it I don’t understand how to use all the “{” signs etc…
thank you