Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CAST date and datetime
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Visual FoxPro Beta
Divers
Thread ID:
00912802
Message ID:
00912823
Vues:
8
>I expected a casting support for date/datetime to numerical values.
>
>
>? CAST(DATE() AS I) && Expected the number of days
>                    && from one given conventional date ( {^1900/1/1} is good )
>*that is
>? CAST(DATE() AS I)=(DATE() - {^1900/1/1}) && expected true
>? CAST(DATETIME() AS B(0)) && Expected the number of seconds
>                           && from one given conventional datetime ( {^1900/1/1:} )
>*that is
>? CAST(DATETIME() AS B(0))=(DATETIME() - {^1900/1/1:}) && expected true
>
It's listed in the help file as not supported.
George

Ubi caritas et amor, deus ibi est
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform