>Hello All!!!
>
>I wanna to convert a time string to the time format, in vfp help i found the CTOT() function, but the CTOT()function convert to datetime format, and i only wanna time format, by sample:
>
>Hour="23:45"
>cHOUR=anyfunction(HOUR)
>
>Anyone did undertand me
Anderson,
VFP has no Time data type, datetime is the only data type that contains any time information. You can create a date time value from your character string as follows;
Hour = "23:45"
tHour = CTOT(" / / " + Hour)