script to save file

Hello evry1,
Trying to come up with a script that picks content from another file, and saved the new file with the original file name but adding the time when the script is run to the new file name.
after which it compresses this new file.

Thanks in advance

./program-which-extracts-data < "$input_filename" | gzip > "${input_filename}$(date +%F)..gz"