Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Date Format
Message
De
02/09/2003 12:36:25
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, États-Unis
 
 
À
02/09/2003 11:46:19
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00825342
Message ID:
00825358
Vues:
24
Hi Stephen

I am not sure about cast() but convert() has a parameter to define how to format the date.

>I am updating a SQL server table and one of the fields I am updating is a character field which is a combination of a persons First name, middle initial, Last name, & Dob In the code, my syntax is
>field={firstname}+{middlename}+{lastname}+cast(dob as varchar(12))
>which works fine but after I look at the field the date is stored as
>January 13th 1987 instead on 1/13/1987, are there any functions or commands
>that will help me get the date stored into this field in the desired fashion ?
>
>Thanks For Your Help !
>Stephen J. Hunt
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform