Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datetime query problem
Message
 
 
À
06/07/2000 13:16:46
Bob Smith
Custom Data Services, Inc.
Mansfield, Massachusetts, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00388982
Message ID:
00388987
Vues:
8
This message has been marked as the solution to the initial question of the thread.
>I am trying to run the following simple query
>date_sent is a datetime field and I am tryimg to extract the date
>portion from the datetime
>
>select date(year(date_sent),month(date_sent),day(date_sent)) as thedate;
>from cat_sent into cursor tempcurs
>
>When I do so I get the Function argument, value , type or count is invalid message
>
>However the date(year(date_sent),month(date_sent),day(date_sent)) syntax by itself seems to be valid when I use it ftom the command window
>
>Any help is appreciated in advance !


Bob,

Just use TTOD() function

select TTOD(date_sent) as thedate from cat_sent into cursor tempcurs
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform