Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 297
  • Last Modified:

how to format date in datagrid asp.net 1.1

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
ziorrinfotech
Asked:
ziorrinfotech
  • 2
1 Solution
 
ShazbotOKCommented:
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
 
ziorrinfotechAuthor Commented:
the form i want is something like 12-Nov-07
0
 
ShazbotOKCommented:
That would be DD-MMM-YY
0

Featured Post

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now