Results 1 to 2 of 2

Thread: displaying date

  1. #1

    Thread Starter
    Member
    Join Date
    Jun 2002
    Location
    Madras
    Posts
    50

    displaying date

    Hi,


    I need to display date in a textbox fetching from the database . I can get the date properly but i need to display it in dd-MMM-yyyy format in the textbox. can any one help me out to solve this

    thanx
    venkat

    Strength is Life, Weakness is Death

    - Swami Vivekananda

  2. #2
    Frenzied Member dj4uk's Avatar
    Join Date
    Aug 2002
    Location
    Birmingham, UK Lobotomies: 3
    Posts
    1,131

    Re: displaying date

    Try:
    Code:
    <asp:TextBox id="txtDate" Text=<%# DataBinder.Eval(Container.DataItem, "Date", "{0:dd-MMM-yyyy}" ) %> runat="server" />
    DJ

    If I have been helpful please rate my post. If I haven't tell me!

Posting Permissions

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



Click Here to Expand Forum to Full Width