VBScript Variables in FinalBuilder

Hi, 

I have a vbscript in the run script action that return the date + 1 stored in a variable.  However, I can not see the returned value in the variable (which is in my project variable) through finalbuilder.

Can anyone tell me how its done? 

Thanks

here is my vbscript statement in the run script action

d_date= Date
d_added=DateAdd("d",1,Date)

basically, I need d_added.

FinalBuilder 6 doesn’t know how to use date variables in text fields, so you need to set the finalbuilder variable in script like this :

FBVariables.MYDATE = FBFormatDateTime(“dd/MM/yyyy”,d_added)

then MYDATE can be used as a string in FB.

Also, you might like to take a look at the GetDateTime action, it can do the same thing - much simpler than scripting

1 Like