# VBScript Variables in FinalBuilder

**URL:** https://www.finalbuilder.com/forums/t/vbscript-variables-in-finalbuilder/1534
**Category:** Discussion
**Created:** [July 23, 2010, 1:22am UTC](https://www.finalbuilder.com/forums/t/vbscript-variables-in-finalbuilder/1534 "2010-07-23T01:22:17Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![deleted\_user](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/deleted_user/32/937_2.png) [@deleted\_user](https://www.finalbuilder.com/forums/u/deleted_user)
#### Post date: [July 23, 2010, 1:22am UTC](https://www.finalbuilder.com/forums/t/vbscript-variables-in-finalbuilder/1534/1 "2010-07-23T01:22:17Z")

</div>

Hi,&nbsp;

I have a vbscript in the run script action that return the date + 1 stored in a variable.&nbsp; 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?&nbsp;

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.

---

<div class="post-metadata">

### Author: ![Vincent](https://www.finalbuilder.com/forums/user_avatar/www.finalbuilder.com/vincent/32/938_2.png) [@Vincent](https://www.finalbuilder.com/forums/u/Vincent)
#### Post date: [July 23, 2010, 1:53am UTC](https://www.finalbuilder.com/forums/t/vbscript-variables-in-finalbuilder/1534/2 "2010-07-23T01:53:32Z")

</div>

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
