Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime2character
Message
De
06/01/2001 15:35:31
 
 
À
06/01/2001 09:40:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00460191
Message ID:
00460242
Vues:
13
>Cemal,
>
>To convert datetime() to a character expression use the TTOC function.
>
>Ex. x=ttoc(datetime())
>
>You could then simply use string functions to pull out the specific values you want.

The TTOC() function has an option to extract just the time portion:
cTime = TTOC(DATETIME(),2)
And to get just the date portion, use DTOC():
cDate = DTOC(DATETIME())
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform