Datagrids???

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
 
G

Guest

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();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top