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
Copying file names from explorer into excel as text
Changing Windows 2003 Network Subnet
do i have to create subdomin for
www.record.xyz.com
can't open .docx file
Really strange network problem after Juniper SRX install
Help on using PyGenere.py's functions
WYSIWYG web builder
Bottom of the page popup messenger ad
OWA with Forms Based Authentication
SQL 2005