Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
VFP5 Datetime()
Message
 
 
À
02/01/2002 23:52:39
Rahul Murarka
Sys-Con Engineering
Kolkata, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00600107
Message ID:
00600108
Vues:
15
>Dear Sir/madam
>
>I am using Datetime field to record the current date and time . But in some reports I need only date to be displayed which can be done but I am unable to find how to extract the time part from the datetime() field. In DB structure the field type is datetime.
>
>This field records the current date and time for attendance puposed.
>
>Please help or suggest any other way.
>
>Thanks in advance.

Here's the code that is independent of any foxpro date/time settings.
? TRANSFORM( RIGHT(TTOC( DateTimeField, 1), 6), "@R 99:99:99")
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform