Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Converting a time string to time format
Message
 
To
25/11/1997 07:53:39
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brazil
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00062107
Message ID:
00062114
Views:
36
>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)
Previous
Reply
Map
View

Click here to load this message in the networking platform