Gridview Date formatting problem.



Hi

I have a Gridview in ASP.Net 2.0. I'm populating it with data from a SQL 2005 database (but with legacy design).
In the DB, the dates are stored as DateTime - DD/MM/YY HH:MM:SS.


In the bound Gridview, I'm applying the {0:d} format (to show just the short date).

The date is still displayed in the same format as the DB.

Anybody know of a solution to this, or am I going to populate the Gridview manually, applying formatting then.

Thanks in advance for your assistance.

Jules


.



Relevant Pages

  • Gridview Date Format Problem
    ... I'm populating it with data from a SQL 2005 database. ... In the bound Gridview, I'm applying the format. ... Anybody know of a solution to this, or am I going to populate the Gridview manually, applying formatting then. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)
  • Get Datakey Value from Gridview/sqldatasource
    ... I need to get the unique datakeynames value from a query that is populating ... I have a sqldatasource setup that is using a store procedure. ... have the results from it populating a gridview. ...
    (microsoft.public.dotnet.framework.aspnet.webcontrols)
  • Re: Checkbox and Gridview
    ... I have the grid populating the correct checkboxes now. ... populate your dataset based on the user's selection. ... you would need to do is rebind your gridview to the dataset ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Checkbox and Gridview
    ... I have a gridview that contains a checkbox for each row and in each ... One way you could do this is by populating your gridview from a ... populate your dataset based on the user's selection. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Gridview Date Format Problem
    ... We're going to SQL Server 2005 next week, so we'll be able to do it properly! ... I have a Gridview in ASP.Net 2.0. ... I'm populating it with data from a ... Gridview manually, applying formatting then. ...
    (microsoft.public.dotnet.framework.aspnet.datagridcontrol)