DotNetNewsgroup.com  
web access to complete list of Microsoft.NET newsgroups
   home   |   control panel login   |   archive  |  
 
  carried group
academic
adonet
aspnet
aspnet.announcements
aspnet.buildingcontrols
aspnet.caching
aspnet.datagridcontrol
aspnet.mobile
aspnet.security
aspnet.webcontrols
aspnet.webservices
assignment_manager
datatools
dotnet.distributed_apps
dotnet.general
dotnet.myservices
dotnet.nternationalization
dotnet.scripting
dotnet.security
dotnet.vjsharp
dotnet.vsa
dotnet.xml
dotnetfaqs
framework
framework.clr
framework.compactframework
framework.component_services
framework.controls
framework.databinding
framework.drawing
framework.enhancements
framework.interop
framework.odbcnet
framework.performance
framework.remoting
framework.sdk
framework.setup
framework.webservices
framework.windowsforms
framework.wmi
frwk.windowsforms.designtime
lang.csharp
lang.jscript
lang.vb
lang.vb.controls
lang.vb.data
lang.vb.upgrade
lang.vc
lang.vc.libraries
  
 
start date: Fri, 10 Aug 2007 14:35:33 -0300,    posted on: microsoft.public.dotnet.framework.aspnet        back       

Thread Index
  1    Paulo
          2    Siva M
          3    Paulo


Template GridView   
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 ?
Date:Fri, 10 Aug 2007 14:35:33 -0300   Author:  

RE: Template GridView   
<%# 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 ? 
> 
> 
> 
Date:Fri, 10 Aug 2007 11:00:00 -0700   Author:  

Re: Template GridView   
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:ECE7A8F1-97CD-4882-B11F-A0D933C9403C@microsoft.com...

> <%# 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 ?
>>
>>
>> 
Date:Fri, 10 Aug 2007 15:22:31 -0300   Author:  

Google
 
Web dotnetnewsgroup.com


COPYRIGHT ?2005, EUROFRONT WORLDWIDE LTD., ALL RIGHT RESERVE  |   Contact us