>>The problem here that this format is set('date') dependent. What if I'm using 01-01-2004 format? Also AA allows to enter any letter, and I need to allow only AM or PM. Moreover, it depends, am I using military time format or not.
>
>You're probably using the 24-hour format hh:mm; the military time is hhmm (without the colon).
>
>I sometimes wish AM/PM was never invented... it's so ridiculously illogical.
Thanks for clarifying. We are using full notation here with AM/PM. And it looks like this little big or feature of VFP would not allow me to build this custom class I promised my colleagues. It works for date fields, but doesn't work for datetime. What a pity! :(
If it's not broken, fix it until it is.
My Blog