In reply to: User
I would like to create a form where the user will have two attributes to choose from:
1. Hour from:
2. Hour to:
So instead of selecting the date and time, there will only be time.
You could use:
* 2 Decimal fields with 0 decimal places, and suffix 'h'. + Validation on exit which will check if first number is smaller than second, and if both are smaller than 25.
* 1 or 2 Text fields with regex, that will validate input format. + Similar validation on exit.
I would rather go with Decimal fields, as it will be easier to make some math, an validation on it.
Second option will give faster feedback about the input, thanks to regex though.