Trying to use format in rules

here is a great thread by Rud that will help you

in this thread I give an example and some more resources