Home All Groups Group Topic Archive Search About
Author
19 Oct 2006 4:04 AM
chandu
Hai,

i put template column in datagrid. then if i want to display date in that
column (only date with out default time).can u tell me that option to
display only date with out tme.


if it is datagrid bounded column then it will come.

i want for template column.

thank u ..

Author
19 Oct 2006 10:09 AM
kan
Hai chandu..
    Its very simple on the property builder select on which  template u
want to display date..click the template and below u can find data
bound properties type this {0:dd/MM/yyyy} while running u will get date
without time..


chandu wrote:
Show quoteHide quote
> Hai,
>
> i put template column in datagrid. then if i want to display date in that
> column (only date with out default time).can u tell me that option to
> display only date with out tme.
>
>
> if it is datagrid bounded column then it will come.
>
> i want for template column.
>
>  thank u ..
Author
20 Oct 2006 2:59 AM
alvinzc
Or just calling

<%#
Convert.ToDateTime(DataBinder.Eval(Container.DataItem,"DateTimeField")).ToShortDateString()
%>



Regards,
Alvin Chooi
http://alvinzc.blogspot.com