Formatting data in Gridview

G

Gunawan

Hi,
I have a datetime field (boundfield) in gridview.
I have tried to set DataFormatString to {0:dd-mmm-yy} but it won't work.
What wrong and how can I display datetime in dd-mmm-yy.
Thank you.

Regards,
Gun
 
G

Gunawan

It is working now.
Thank you.

Regards,
Gun

Eliyahu Goldin said:
Set HtmlEncode = false for the field.

--
Eliyahu Goldin,
Software Developer & Consultant
Microsoft MVP [ASP.NET]
http://msmvps.com/blogs/egoldin
http://usableasp.net


Gunawan said:
Hi,
I have a datetime field (boundfield) in gridview.
I have tried to set DataFormatString to {0:dd-mmm-yy} but it won't work.
What wrong and how can I display datetime in dd-mmm-yy.
Thank you.

Regards,
Gun
 

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

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top