Formating Date

Results 1 to 2 of 2

Thread: Formating Date

  1. #1
    Join Date
    Dec 1969

    Default Formating Date

    I have a datagrid with some bound columns. I was wondering how I format the date to shortdate(8/20/02)? I thought you had to input the format you want in the dateformatstring of the column. but its not working. <BR><BR>&#060;asp:BoundColumn DataFormatString="shortdate" DataField="tblHours.Date" HeaderText="Date" ReadOnly="True" /&#062;<BR> <BR>Please help?? thanks

  2. #2
    Join Date
    Dec 1969

    Default RE: Formating Date

    This worked for me...<BR>&#060;asp:BoundColumn DataField="date_sent" SortExpression="date_sent" HeaderText="Date" DataFormatString="{0:MM/dd/yyyy}"&#062;&#060;/asp:BoundColumn&#062;

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts