show just the date in a datagrid column when the datafield is an datetime field

A

Adil Bohoudi

Hi all,

i'm using a datagrid to show somedata retrieved from an sql-server 2000.

this datagrid contains two columns a startdate and an enddate column.
i used a storedprocedure to get both dates. but when i use the following
code:

datagrid.datasource = selDates()
datagrid.bind()

both columns show the retrived datetime value. it's a little bit ugly to
see.......... the only thing i need is just the date value....

does someone know how to show only the datepart in a datagrid column

thanks in advance,

Adil
 

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

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,050
Latest member
AngelS122

Latest Threads

Top