>>>>>I am writing a program and I need a TIME IN field and
>>>>>a TIME OUT field. I know I could use VALIDS and check
>>>>>the user entry, but I thought that vfp50 might have
>>>>>some built in stuff. Any ideas?
>>>>Robert,
>>>>
>>>>Use a DateTime field for this.
>>>
>>>Thanks Jim... I do not need the DATE part of the
>>>DATETIME fld. Is there a way to use the DATETIME data type
>>>and only use the TIME part? I need TIME IN and TIME OUT flds.
>>>thanks..rob
>>Robert,
>>
>>You may not need the date part until something runs over midnight. Keep in mind that 2:00PM is meaningless unless you also know what day it is on.
>>
>>You can display only the time portion of a date tiem field, or only the date, or only the minutes. Essentially anything you want. CDheck out the TTOD(), MINUTE(), SEC(), MONTH(), and other functions that manipulate the DateTime data type.
>
>OK Jim..thanks for the information...it helps..rob
don't forget TTOC which (according to the manual) will actually give you just the date portion of a datetime field.