Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Comparing time entries..
Message
De
06/05/2009 22:19:03
Luis Navas
Independent Consultant
Auckland, Nouvelle Zélande
 
 
À
06/05/2009 22:13:39
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01398272
Message ID:
01398273
Vues:
88
This message has been marked as the solution to the initial question of the thread.
>I need to see if swipetime in my table is greater than 12:00PM..
>
>I'm getting my data from an MS Access table.. it has the timeentry as DATETIME()..
>
>I made use of TTOD and TTOC to get date and time separetely and save them in two different fields.. into a foxpro table..
>
>Now I get the time as Character with entries such as 11:51:37 AM.. 02:30:57 PM.. etc..
>
>I don't know now how to compare this time.. to say.. > 12:00 or 13:00..
>
>Any help? TIA.


Leave it as Datetime and use the Hour() function. Also check SET HOURS TO to control between 12 Hrs and 24 Hrs format.

Luis
I never forget a face, but in your case I will make an exception :-)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform