Evaluating hour

Hello I have two fields one indicates the Hour of beginning and the other the hour of term, I’m trying to evaluate that the hour of beginning isn’t major that the hour of end, I want to do this with formulas but I can’t.I tried something like this:

@If($Paso=“1” & @ToNumber(HourBegin)>@ToNumber(HourTerm);

@Do(@SetField(“Alert”;“Wrong hours”);

@Return(“”));

1);

but it doesn’t work =( .

Every field have the control property check Display Time, with the format 12 hour and de separator “:” some like : 5:12 pm

I hope some one can help me thanks.

Subject: Evaluating hour

Can’t you use the @Hour function on the orginal date/time?