# Constraint - Comparing two "time" questions

**URL:** <https://forum.getodk.org/t/constraint-comparing-two-time-questions/9781>\
**Category:** Support\
**Tags:** form-design, odk-xlsform\
**Created:** [September 11, 2017, 2:19pm UTC](https://forum.getodk.org/t/constraint-comparing-two-time-questions/9781 "2017-09-11T14:19:30Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![faran\_d](https://getodk.b-cdn.net/user_avatar/forum.getodk.org/faran_d/32/19388_2.png) [@faran\_d](https://forum.getodk.org/u/faran_d)\
**Post date:** [January 25, 2023, 11:24am UTC](https://forum.getodk.org/t/constraint-comparing-two-time-questions/9781/4 "2023-01-25T11:24:32Z")

</div>

Hi all,

@Grzesiek2010 thank you for providing the solution to this. I have tried using this same constraint, and it works perfectly in the app but for some reason it doesn't seem to work on the web version while I am testing. Please see screenshot below - no matter what time I put in the "End time" it still shows as an error.

![image](https://getodk.b-cdn.net/uploads/default/original/3X/9/0/9024af03504accd85918ac39e45d444de820b124.png)

I used the same constraint you suggested: decimal-date-time(.)\>decimal-date-time(../start\_time)

Any advice?

Many thanks,

Faran

---

_[View the full topic](https://forum.getodk.org/t/constraint-comparing-two-time-questions/9781)._
