Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    Compare TimeItems

    I am writing a customValidator to compare that a timeItem is < than a second timeItem.
    But how to compare the values? If I use getValueAsDate() it will be using dates, and in the documentation "you should ignore the date part of the timeItems". So it is not specified what is returned. So how to compare two TimeItems?

    Using 6.0p power

    #2
    You can use getValueAsDate() - TimeItems return logical times, which are really dates anyway. The date parts of both will be the same, they just aren't relevant - so a regular date comparison would be expected to work.

    Comment

    Working...
    X