Datagrids???

  • Thread starter Thread starter Darryn Ross
  • Start date Start date
D

Darryn Ross

Hi,

I am having a few problems displaying a date in my datagrid... i have
created a custom table and column style and all the data appears great
except for a date field i have is stored as short in the database but when
it comes through the datagrid it has a time stamp on the end of the as
well??? not sure where this info in coming from as it isn't in my database
table, how do i get rid of it?

Regards

Darryn
 
hi,
i think i submitted answer for this queary.

here i am talking about the dateformat.

Eg : your date format is 01/01/2004 10:49:40 Am

And you need to show in any of these format.
dd-MM-yyyy or dd-MMM-yyyy form.

what you need to do is

use string formater(IFormater interface)

DateTime.Now.ToString();

DateTime.Now.ToString("dd-MMM-yyyy").ToString();

DateTime.Now.ToString("dd/MMM/yyyy").ToString();
 
Back
Top