# %datetime%

**URL:** https://www.finalbuilder.com/forums/t/datetime/206
**Category:** Discussion
**Created:** [September 27, 2006, 2:52am UTC](https://www.finalbuilder.com/forums/t/datetime/206 "2006-09-27T02:52:37Z")
**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: [September 27, 2006, 2:52am UTC](https://www.finalbuilder.com/forums/t/datetime/206/1 "2006-09-27T02:52:37Z")

</div>

Hey,When I rename old files, I would like to include the time in their name, like I used to do in my older batch file using the %datetime% macro. But such macros don’t seem to work in the Rename Action. any suggestions on how to acheive the same thing?Thanks,- Uzi

---

<div class="post-metadata">

### Author: ![paulsamways](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/p/e8c25b/32.png) [@paulsamways](https://www.finalbuilder.com/forums/u/paulsamways)
#### Post date: [September 28, 2006, 1:23am UTC](https://www.finalbuilder.com/forums/t/datetime/206/2 "2006-09-28T01:23:31Z")

</div>

Hi Uzi,  
  
You can assign the date/time to a variable using the ‘Get Date/Time’ action, then use that variable in the rename action.  
  
Paul.
