Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem Filtering By A Datetime Field
Message
De
28/07/2000 13:11:06
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00398244
Message ID:
00398250
Vues:
27
I AM TRYING TO FILTER A TABLE BY A DATETIME FIELD BUT I AM HAVING SOME PROBLEMS.

I AM USING A CODE LIKE THIS:

BETWEEN(ACTIVITY.mydatetimefield,linidatetime_AM,lfindatetime_AM)

BUT is including record that are PM too.
I Supposed that this is only considering the DATE for filter and not the time.

Please, i need help.


It's not necessarily just looking at the date.
For example, {07/27/2000 23:00:00} is between {07/27/2000 10:00:00} and {07/28/2000 10:00:00}.
add an HOUR() criteria to the where clause
note: HOUR() always returns in 24 hour format
AND HOUR(ACTIVITY.mydatetimefield)<12
Insanity: Doing the same thing over and over and expecting different results.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform