Hi, you can use a rule and set some condition to build your string and set a filename field.
i e: On field1:you set the default value:now()
and a rule condition: substring(xdDate:Now(), 12, 2) > 12 (you have to select expression)
and the rule to set another field: concat(substring(now(); 12; 2) - 12; ":"; substring(now(); 15; 2); " PM")
and something similar with the condition <12.