![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Hi, I have a Gridview which is populated via a stored procedure. One of the coumns returned is a date. The date is currently displayed as 18/01/2007 00:00:00. I just want to show the date without the time i.e. 18/01/2007. I have tried adding a dataformatstring of {0:d} but it is not making any difference. Can anyone advise me on what I am doing wrong? T.I.A. Vaughn |
#3
| |||
| |||
|
|
Set HtmlEncode = false for the column. -- Eliyahu Goldin, Software Developer & Consultant Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net "Vaughn Haybittle" <vhaybittle (AT) mweb (DOT) co.za> wrote in message news:%23YDTNpxOHHA.4644 (AT) TK2MSFTNGP03 (DOT) phx.gbl... Hi, I have a Gridview which is populated via a stored procedure. One of the coumns returned is a date. The date is currently displayed as 18/01/2007 00:00:00. I just want to show the date without the time i.e. 18/01/2007. I have tried adding a dataformatstring of {0:d} but it is not making any difference. Can anyone advise me on what I am doing wrong? T.I.A. Vaughn |
#4
| |||
| |||
|
|
Hi, Thanks for the information. It worked perfectly. Can you please explain briefly why changing this property made a difference. Many thanks, Vaughn "Eliyahu Goldin" <REMOVEALLCAPITALSeEgGoldDinN (AT) mMvVpPsS (DOT) org> wrote in message news:OQldwtxOHHA.4332 (AT) TK2MSFTNGP03 (DOT) phx.gbl... Set HtmlEncode = false for the column. -- Eliyahu Goldin, Software Developer & Consultant Microsoft MVP [ASP.NET] http://msmvps.com/blogs/egoldin http://usableasp.net "Vaughn Haybittle" <vhaybittle (AT) mweb (DOT) co.za> wrote in message news:%23YDTNpxOHHA.4644 (AT) TK2MSFTNGP03 (DOT) phx.gbl... Hi, I have a Gridview which is populated via a stored procedure. One of the coumns returned is a date. The date is currently displayed as 18/01/2007 00:00:00. I just want to show the date without the time i.e. 18/01/2007. I have tried adding a dataformatstring of {0:d} but it is not making any difference. Can anyone advise me on what I am doing wrong? T.I.A. Vaughn |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |