Today I got change to work with timeedit control in Ax where we have to get input of time and then take difference to get number of hours.
For this example I used timeEdit control and add two timeEdit control in form.These timeEdit controls are unbound, I set the out of the box FromTime and ToTime extended data Type and set auto declaration property to true so these controls can be access by name in code.
Similarly set the properties ToTime.
Now add button and add its click method. The time difference between two times value can be get with timeConsumed out of the box function.
output is as
out put is as