By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,341 Members | 1,396 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,341 IT Pros & Developers. It's quick & easy.

Delete Time out of Date/Time column

P: 19
I have a column with smalldatetime data type. When I run a query, it shows date and time, I only want the date adn to delete the time. It looks like this:

1979-04-25 00:00:00

What is the script to just get the date?

Thanks
Mar 28 '07 #1
Share this Question
Share on Google+
1 Reply


iburyak
Expert 100+
P: 1,017
Try something like this:


[PHP]Select convert(varchar(20), getdate(), 105)[/PHP]


Replace getdate() with date column.


Good Luck.
Mar 28 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.