Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add time to date to make DateTime
Message
De
02/02/2017 18:51:34
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
01647380
Message ID:
01647385
Vues:
80
This message has been marked as the solution to the initial question of the thread.
>>Hi,
>>
>>Say I have a variable that contains a date. I want to add to it the current time and make the value DateTime type.
>>How do you do it? TIA
>
>This is what I tried:
>
>
>? CTOT( DTOC(DATE()) + TIME())
>
>the above works.
>But if I use a variable, in the following:
>
>dDate = DATE()
>? CTOT( DTOC(dDate) + TIME())
>
>
>The returned value is empty string. I don't understand why.

You missed a space:
?CTOT( DTOC(dDate) +' '+ TIME())

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform