# FB5 SetFileDate Problem

**URL:** <https://www.finalbuilder.com/forums/t/fb5-setfiledate-problem/2994>\
**Category:** Bugs\
**Created:** [June 8, 2008, 1:22am UTC](https://www.finalbuilder.com/forums/t/fb5-setfiledate-problem/2994 "2008-06-08T01:22:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)\
**Post date:** [June 8, 2008, 1:22am UTC](https://www.finalbuilder.com/forums/t/fb5-setfiledate-problem/2994/1 "2008-06-08T01:22:49Z")

</div>

The following VBScript attached to the SetFileDate action doesn't work correctly now in FB 5.5.0.729:

Action.DateTime = Cdate(SkylogProVerAge)

If SkylogProVerAge is 08/06/2008, the Date is set to 06/08/2008 (US date format). I'm pretty sure this worked ok in previous versions.

Using Windows XP Home SP3.

Regards...Andrew

&nbsp;

&nbsp;

---

<div class="post-metadata">

**Author:** ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)\
**Post date:** [June 8, 2008, 1:31am UTC](https://www.finalbuilder.com/forums/t/fb5-setfiledate-problem/2994/2 "2008-06-08T01:31:18Z")

</div>

Hmm.. Doesn't work correctly in FB 5.5.0.707 either. My regional settings Date format is correct at dd/MM/yyy (08/06/2008 - English (United Kingdom)). I wonder if this is an XP SP3 issue?

Regards...Andrew

&nbsp;

---

<div class="post-metadata">

**Author:** ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)\
**Post date:** [June 10, 2008, 2:51am UTC](https://www.finalbuilder.com/forums/t/fb5-setfiledate-problem/2994/3 "2008-06-10T02:51:03Z")

</div>

Seems like an XP SP3 issue. I googled and found a confirmation and a possible workaround described here:   
  
[http://www.edugeek.net/forums/scripts/19075-windows-xp-sp3-cannot-tell-time-2.html](http://www.edugeek.net/forums/scripts/19075-windows-xp-sp3-cannot-tell-time-2.html)   
  
Going on this information, if you go to Project -\> "Project Global Script" in the FB IDE and insert SetLocale(2057) into the VBScript section, it should fix the problem for all scripts in your project.   
  
- Angus

---

<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:** [June 10, 2008, 3:14am UTC](https://www.finalbuilder.com/forums/t/fb5-setfiledate-problem/2994/4 "2008-06-10T03:14:05Z")

</div>

Here’s the KB on this bug from Microsoft :   
  
 [http://support.microsoft.com/kb/951978](http://support.microsoft.com/kb/951978)

---

<div class="post-metadata">

**Author:** ![wasowerby](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/w/b77776/32.png) [@wasowerby](https://www.finalbuilder.com/forums/u/wasowerby)\
**Post date:** [June 10, 2008, 9:53am UTC](https://www.finalbuilder.com/forums/t/fb5-setfiledate-problem/2994/5 "2008-06-10T09:53:24Z")

</div>

Thanks for the info. Tough if you use JScript!

Regards...Andrew
