# Team Foundation Get with a variable

**URL:** https://www.finalbuilder.com/forums/t/team-foundation-get-with-a-variable/948
**Category:** Discussion
**Created:** [August 29, 2008, 6:18am UTC](https://www.finalbuilder.com/forums/t/team-foundation-get-with-a-variable/948 "2008-08-29T06:18:16Z")
**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: [August 29, 2008, 6:18am UTC](https://www.finalbuilder.com/forums/t/team-foundation-get-with-a-variable/948/1 "2008-08-29T06:18:16Z")

</div>

I am using the latest verison, Evaluation copy and I am trying to set Get Specific Version -\> Date to a variable.

I set it to my variable, the variable drop down shows up, but&nbsp; when I tab off the filed or say OK it reverts to today's date.

---

<div class="post-metadata">

### Author: ![tate](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/t/e19b73/32.png) [@tate](https://www.finalbuilder.com/forums/u/tate)
#### Post date: [September 1, 2008, 1:43am UTC](https://www.finalbuilder.com/forums/t/team-foundation-get-with-a-variable/948/2 "2008-09-01T01:43:46Z")

</div>

Hi Mark,   
  
 That field can’t accept variables, so you’ll need to use some script to set that date instead.   
  
 In the BeforeAction script event of the Get action, do something like this:   
  
 Action.PropertyStore.Date = MyNewDate   
  
 (when writing script, you don’t enclose variables with % marks)
