Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to convert Date to character in SQL server
Message
 
To
12/04/2005 02:12:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01003594
Message ID:
01003597
Views:
20
>All Experts,
>
>From visual foxpro i m trying to retrive date from sql server using Convert( char(11), date) function ,
>but it return as 'Apr 12 2005', i need in '12/04/2005' charecter format. How to do that.
>
>Regards
>Abdulla

SELECT CONVERT(char(10), DateTimeField, 101)

Check SQL Books Online for CONVERT() help, espetialy the 3th parameter
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform