Re: Format Date in Databound column



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@xxxxxxxxxx> wrote in message
news:%23YDTNpxOHHA.4644@xxxxxxxxxxxxxxxxxxxxxxx
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



.



Relevant Pages

  • Re: Radiobutton item template
    ... Software Developer & Consultant ... Microsoft MVP ... I've a radiobutton as an ItemTemplate in one of my columns in GridView ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Filter Records
    ... databind the gridview to it. ... Software Developer & Consultant ... Microsoft MVP http://msmvps.com/blogs/egoldinhttp://usableasp.net ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Transaction Question.....
    ... when the data is read using a STORED PROCEDURE I am getting the error. ... > Author, Mentor, Consultant ... > Microsoft MVP ...
    (microsoft.public.dotnet.framework.adonet)
  • Re: Get GridViews datasource after Post Back
    ... Software Developer & Consultant ... Microsoft MVP ... I have a GridView which is bound to a standard DataSet on Page_Load. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Update Process in Stored Procedure
    ... Author, Mentor, Consultant ... Microsoft MVP ... >I have a call to stored procedure that I have added to each of my SQL ... to allow this update procedure to run without ...
    (microsoft.public.vb.database.ado)

Loading