Add timestamp to file name

I'm trying to add a timestamp to a file name. This is only working for the default value. The Get DateTime action is not picking up the current time. I'm using FB 5.5.

So I first set my variable like this:

1_VariableEditor.jpg

Then, I setup the Get DateTime action like this:

2_GetDateTimeAction.jpg

Last, I add this variable as part of the zip archive name, like this:

3_CreateArchive.jpg

The %MyTimeStamp% variable only gets expanded, if there is a default value. I want this to use the current time when the FB project is run. Am I doing this right? If not, is there another way of doing this?

Thanks!

Hi Hector,

Turn off ‘Is Macro’ option for the variable.

When enabled the variable will be treated as a “macro” or “function”. It’s value will be re-evaluated every time it’s accessed and can only be set when the variable is defined.

Regards,
Paul.

That did it. Thanks!