Template GridView

Discussion in 'ASP .Net' started by Paulo, Aug 10, 2007.

  1. Paulo

    Paulo Guest

    Hi, I have a template wich shows a DateTime returned from the SQL server,
    but where do I put a function wich returns only the date not the time?

    <asp:Label ID="Label9" runat="server" Text='<%# Bind("DATA_CONTRATO")
    %>'></asp:Label>

    Can you help me ?
     
    Paulo, Aug 10, 2007
    #1
    1. Advertising

  2. <%# Bind ("DATA_CONTRATO", "{0:dd/MM/yyyy}") %>

    "Paulo" wrote:

    > Hi, I have a template wich shows a DateTime returned from the SQL server,
    > but where do I put a function wich returns only the date not the time?
    >
    > <asp:Label ID="Label9" runat="server" Text='<%# Bind("DATA_CONTRATO")
    > %>'></asp:Label>
    >
    > Can you help me ?
    >
    >
    >
     
    =?Utf-8?B?U2l2YSBN?=, Aug 10, 2007
    #2
    1. Advertising

  3. Paulo

    Paulo Guest

    Thanks a lot Siva, worked... but how do you know all the functions and these
    tricks that .net can do?

    Do you have any didatic sites/materials wich teachs these tricks and tips?

    thanks!


    "Siva M" <> escreveu na mensagem
    news:...
    > <%# Bind ("DATA_CONTRATO", "{0:dd/MM/yyyy}") %>
    >
    > "Paulo" wrote:
    >
    >> Hi, I have a template wich shows a DateTime returned from the SQL server,
    >> but where do I put a function wich returns only the date not the time?
    >>
    >> <asp:Label ID="Label9" runat="server" Text='<%# Bind("DATA_CONTRATO")
    >> %>'></asp:Label>
    >>
    >> Can you help me ?
    >>
    >>
    >>
     
    Paulo, Aug 10, 2007
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Chris Theis
    Replies:
    2
    Views:
    477
    Chris Theis
    Jul 24, 2003
  2. tom_usenet
    Replies:
    0
    Views:
    538
    tom_usenet
    Jul 24, 2003
  3. Replies:
    1
    Views:
    2,113
    Gianni Mariani
    Jun 8, 2007
  4. Peng Yu
    Replies:
    3
    Views:
    781
    Thomas J. Gritzan
    Oct 26, 2008
  5. nguillot
    Replies:
    5
    Views:
    532
Loading...

Share This Page