asp.net中gridview如何让date类型字段只显示日期,不显示时间
本人初学,求讲的详细点,

比如说gridview哪个属性,怎么改?
或者查询语句怎么改?
select top 5 pname,pdate from project where ptype ='1'
------解决方案--------------------试试
Select CONVERT(varchar(100), GETDATE(), 23)--2013-07-08
select top 5 pname, CONVERT(varchar(100),pdate , 23) from project where ptype ='1'
------解决方案--------------------select top 5 pname,convert(varchar(10),pdate,23) pdate
from project where ptype ='1'