Microsoft
Software
Hardware
Network
Question : SQL convert time and date to just date
Hi, I want to convert a date field from time and date to just a date field, in a SQL select statement (Using SQL server) -
Currently I have Select TimeAndDateField from MyTable
I know I use the convert() function but I cant seem to get the rest of the sytax correct, Please help!
Answer : SQL convert time and date to just date
If you intend to use it as a datetime, this works too without convert
Select dateadd(d,0,datediff(d, 0, TimeAndDateField)) from MyTable
It strips the time portion away.
Random Solutions
Create a writable PDF and email as an attachement via PHP
work, forces and vectors
Clear the Runtime-Created Controls from a Panel vb.net
MySQL installation on FreeBSD problem
My changes in on the notes local calendar is not replicating with the server
Black Screen After PC Boot
Bluetooth Encryption
hp dv6000 pavilion entertainment PC lost HP Quick Launch driver
Counting total number of "Green" cells in a row.
unable to send mail