Tuesday, April 17, 2007

Formating date in asp.net1.1 datagrid.

Some time we need to display the dates in data grid. And we have to format it as per the requirement.

here is the way to format link in the data grid.

First Select data grid and open property window by pressing f4. Then go to the.
Click on the property builder then click the columns and select the column which you
want to display in date format.

Then go to the data formating expression text box and paste the following code.
{0:dd/MM/yyyy}

compile the application and now data will be display in dd/MM/yyyy format.

Here you can specify any valid format for date.
Share:

0 comments:

Post a Comment

Your feedback is very important to me. Please provide your feedback via putting comments.

About Me
My Photo

Full Stack Developer,Blogger,Microsoft Mvp, Mentor, Life long learner, 10+ Years of Experience for JavaScript, web and Microsoft technologies. ASP.NET MVC,Web Forms,C#,AngularJs,Golang
Mvp profile
Subscribe to my blog

Enter your email address:

Follow us on facebook
Blog Archive
Total Pageviews