Validate dates and times

Hello! I need help :)

I have a doubt that I do not know how to do it.

I want to validate the hours field and the minutes field in this way:

• From April 1 to September 30, effective hours will be 7.

• From October 1 to March 31, the effective hours will be 7 and the minutes will be 33.

in my code:

a!sideBySideItem(
item:

a!integerField(
labelPosition: "ABOVE",
value: ri!Regis.hours,
saveInto: {ri!Regis.hours},
align: "LEFT"
),
width: "MINIMIZE"
),
a!sideBySideItem(
item:
a!textField(
labelPosition: "ABOVE",
value: " Hours ",
readOnly: true
),
width: "MINIMIZE"
),
a!sideBySideItem(
item:

a!integerField(
labelPosition: "ABOVE",
value: ri!Regis.minute,
saveInto: {ri!Regis.minute}
),
width: "MINIMIZE"
),
a!sideBySideItem(
item:
a!textField(
labelPosition: "ABOVE",
value: " Minute",
readOnly: true
)
)

thanks so much!!

  Discussion posts and replies are publicly visible