# How do you get file created time and add the time to filenname?

**URL:** https://www.finalbuilder.com/forums/t/how-do-you-get-file-created-time-and-add-the-time-to-filenname/2346
**Category:** Discussion
**Created:** [February 27, 2015, 5:47am UTC](https://www.finalbuilder.com/forums/t/how-do-you-get-file-created-time-and-add-the-time-to-filenname/2346 "2015-02-27T05:47:56Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![valve1900](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/v/edb3f5/32.png) [@valve1900](https://www.finalbuilder.com/forums/u/valve1900)
#### Post date: [February 27, 2015, 5:47am UTC](https://www.finalbuilder.com/forums/t/how-do-you-get-file-created-time-and-add-the-time-to-filenname/2346/1 "2015-02-27T05:47:56Z")

</div>

&nbsp;

I have a file called MyDocument1.doc, I intend to add the file’s created or modified time at the end of the name, such as

MyDocment1 2015\_02\_27\_11\_02\_AM.doc

&nbsp;

Is there a way I can do this?

&nbsp;

Thanks.

---

<div class="post-metadata">

### Author: ![nevar](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/n/c4cdca/32.png) [@nevar](https://www.finalbuilder.com/forums/u/nevar)
#### Post date: [March 1, 2015, 11:14am UTC](https://www.finalbuilder.com/forums/t/how-do-you-get-file-created-time-and-add-the-time-to-filenname/2346/2 "2015-03-01T11:14:06Z")

</div>

Hi Valve,   
  
 Yes and it should be fairly easy. Use a Get File/Folder Date action to extract the modified date from MyDocument1.doc. Then use a Rename File or Directory action to rename MyDocument1.doc using its original name with the formatted date appended to it.   
  
 The date will be formatted based on the format string specified in the variable in which its held. Therefore you can use the format string YYYY\_MM\_DD\_HH\_NN\_SS\_ampm with in the date variable to get the formatting you require. Then its a simple matter of concatenating the original file name with the new date variable value.
