# Run vs Deploy - strange behavior difference

**URL:** <https://forum.xojo.com/t/run-vs-deploy-strange-behavior-difference/48459>\
**Category:** General\
**Created:** [May 10, 2019, 6:21pm UTC](https://forum.xojo.com/t/run-vs-deploy-strange-behavior-difference/48459 "2019-05-10T18:21:16Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Val\_Kozmenko](https://forum.xojo.com/letter_avatar_proxy/v4/letter/v/85f322/32.png) [@Val\_Kozmenko](https://forum.xojo.com/u/Val_Kozmenko)\
**Post date:** [May 10, 2019, 6:21pm UTC](https://forum.xojo.com/t/run-vs-deploy-strange-behavior-difference/48459/1 "2019-05-10T18:21:16Z")

</div>

Hi, all,

I am developing a web application that I want to be active only on specific dates.

On the main paige, I’ve created TextField1 whose Visible is set to False.

Then I created a Timer with the following code

```auto
Dim d as New Date
Dim password As String

if d.ShortDate="5/10/19" then
  TextField1.Visible=True
end
```

When I test the app via the Run, it works as expected.

When it is deployed on the XOJO server (San Francisco) it fails to make the TextField1 visible.

Could someone help me please?

Thank you,

Val

---

<div class="post-metadata">

**Author:** ![Tim\_Parnell](https://forum.xojo.com/user_avatar/forum.xojo.com/tim_parnell/32/161_2.png) [@Tim\_Parnell](https://forum.xojo.com/u/Tim_Parnell)\
**Post date:** [May 10, 2019, 6:25pm UTC](https://forum.xojo.com/t/run-vs-deploy-strange-behavior-difference/48459/2 "2019-05-10T18:25:33Z")

</div>

ShortDate is localized, what do you get if you put a label on the page with the ShortDate when deployed?

Edit: Also, that’s a horrible way to test dates because of the localization issues. Create two date objects and test those - not strings.

---

<div class="post-metadata">

**Author:** ![Rick\_Araujo](https://forum.xojo.com/user_avatar/forum.xojo.com/rick_araujo/32/251_2.png) [@Rick\_Araujo](https://forum.xojo.com/u/Rick_Araujo)\
**Post date:** [May 10, 2019, 6:29pm UTC](https://forum.xojo.com/t/run-vs-deploy-strange-behavior-difference/48459/3 "2019-05-10T18:29:08Z")

</div>

Or use an universal format like:

If d.SQLDate=“2019-05-10” Then…

---

<div class="post-metadata">

**Author:** ![Val\_Kozmenko](https://forum.xojo.com/letter_avatar_proxy/v4/letter/v/85f322/32.png) [@Val\_Kozmenko](https://forum.xojo.com/u/Val_Kozmenko)\
**Post date:** [May 10, 2019, 6:35pm UTC](https://forum.xojo.com/t/run-vs-deploy-strange-behavior-difference/48459/4 "2019-05-10T18:35:48Z")

</div>

The label shows “05/10/2019”

I changed “05/10/19” into “05/10/2019” and it helped!

Now it is working!

I will also try the d.SQLDate,

Thank you both, guys,

Have a good weekend.

Val

---

<div class="post-metadata">

**Author:** ![system](https://forum.xojo.com/uploads/default/original/1X/455b4dcc0e61630e9f81940004ddffa49c432a46.png) [@system](https://forum.xojo.com/u/system)\
**Post date:** [April 29, 2021, 3:56pm UTC](https://forum.xojo.com/t/run-vs-deploy-strange-behavior-difference/48459/5 "2021-04-29T15:56:07Z")

</div>


