Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Converting a time string to time format
Message
 
À
25/11/1997 07:53:39
Anderson Girardi
Athenas Automação de Escritório
Porto Alegre, Brésil
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00062107
Message ID:
00062114
Vues:
31
>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)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform