Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Pulling Just the Date and Just the time
Message
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01088976
Message ID:
01088986
Views:
7
>Can I retreive the Date and Time portions of a DateTime into seperarte columns?
Look at Sergey's Message
and try
SELECT CONVERT(char(10),date_time_column, 101), CONVERT(char(8), date_time_column, 108) from your_db_table
Look in BOL for convert what is 101 and 108
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Reply
Map
View

Click here to load this message in the networking platform