Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Date Format
Message
From
02/09/2003 12:36:25
James Blackburn
Qualty Design Systems, Inc.
Kuna, Idaho, United States
 
 
To
02/09/2003 11:46:19
Stephen Hunt
Admit Computer Services Inc.
Farmingdale, New York, United States
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00825342
Message ID:
00825358
Views:
26
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
Previous
Reply
Map
View

Click here to load this message in the networking platform