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
C# Reading file into bytes, then converting it to string, then converting it back to bytes
phpMyAdmin
Developing for W2K3 - Missing MSCVP100.DLL & MSVCR100.DLL
Windows XP Pro OEM Prebuilder Media download from Microsoft website.
CISCO memory information
Converting GMT to EST
sql syntax help in my vba code when primary key field has spaces
Does VOIP make sense for a small organization?
limit user only to send emails within our own company
How can I trigger a macro when the "send to mail" function is used?