Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Transfer character TO Date Format
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
Divers
Thread ID:
01391975
Message ID:
01391980
Vues:
47
The CTOD function can only convert particular string formats to a date. If it does not recognize string as a date it returns empty date.

Try
CAST(STREXTRACT(lcStr, "", SPACE(1)) AS D)
>
>I want to transform a caractere expression to a date Format.
>Please see attachment because i have a strange result.
>
>
> m.dte_Sortie =  CTOD( TempCrystal.ddepart )
>
>
>TempCrystal.ddepart is not empty and m.dte_Sortie give a empty string !?
>thank in advance For help
>
>bernhart
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform