Solved

how to format date in datagrid asp.net 1.1

Posted on 2007-03-29
3
250 Views
Last Modified: 2008-03-10
I have date column which iam showing in the datagrid of asp.net 1.1
but i want to format the date before displaying it
how can i do this
0
Comment
Question by:ziorrinfotech
  • 2
3 Comments
 
LVL 12

Accepted Solution

by:
ShazbotOK earned 125 total points
ID: 18815465
in the designer of that datagrid set the [ColumnName].Format to the string representation of how you want the date to display here is the reference link on MSDN for what are valid settings:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/html/cpconstandarddatetimeformatstrings.asp
0
 

Author Comment

by:ziorrinfotech
ID: 18815484
the form i want is something like 12-Nov-07
0
 
LVL 12

Expert Comment

by:ShazbotOK
ID: 18815745
That would be DD-MMM-YY
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now