Floorplan Format Date & Time

I find myself creating new sensors from existing ones in order to get the formatting correct for Floorplan. Is it possible to use a text_template in the floorplan yaml to format the time & date?

similar to this (which works)
text_template: ‘${entity.state ? Math.round(entity.state) + " mph" : “”}’

but with this (which doesn’t work)
text_template: ‘$(entity.state ? as_timestamp(entity.state) - 25200) | timestamp_custom(’%-I:%M %P’) : “”}’