# Get File/Folder Date still errors

**URL:** <https://www.finalbuilder.com/forums/t/get-file-folder-date-still-errors/3375>\
**Category:** Bugs\
**Created:** [July 1, 2011, 9:32am UTC](https://www.finalbuilder.com/forums/t/get-file-folder-date-still-errors/3375 "2011-07-01T09:32:46Z")\
**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 1, 2011, 9:32am UTC](https://www.finalbuilder.com/forums/t/get-file-folder-date-still-errors/3375/1 "2011-07-01T09:32:46Z")

</div>

Get File/Folder Date still errors in build 7.0.0.1283

- If the var is string you get :

Error Executing script : OnGetDate  
Exception  
Could not convert value: string to TDateTime.  
  
- If the var is DateTime you get:

Traceback (most recent call last):  
Exception: Failed to compile script source :&nbsp;&nbsp; File "script", line 1  
&nbsp;&nbsp;&nbsp; dim s  
  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ^  
SyntaxError: unexpected token 's'  
OnGetDate script event failed.

  

.....

Is this ever going to work?

Oh, if I set the var to string with ignore error check it \*will\* return a date time, but it will be an hour off.

&nbsp;

---

<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 2, 2011, 3:31am UTC](https://www.finalbuilder.com/forums/t/get-file-folder-date-still-errors/3375/2 "2011-07-02T03:31:00Z")

</div>

Looks like you have the script language set to Python… so the error script error is indeed an error. This build should resolve the other error :   
  
 [https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700\_1392.exe](https://www.finalbuilder.com/downloads/finalbuilder/aex6/FB700_1392.exe)
