|
 |
aspx thread: Format DataGrid BoundColumn
Message #1 by goodr@m... on Fri, 14 Jun 2002 13:29:47
|
|
I have a DataGrid with a DateTime field that displays the date/time
as "6/14/2002 5:00:00 AM". I would like to display only the time in the
following format "5:00 AM". I have read some information about the
BoundColumn Properties DataFormatString, but the referance formating
specifies nothing about dates/times only numbers values. Is it possiable
to do this.
Thanks, Ron
Message #2 by "Mingkun Goh" <mangokun@h...> on Sun, 16 Jun 2002 18:03:59
|
|
Using Property Builder, set on Columns page
Uncheck Create columns automatically
Select all fields
Change data format for your field to {0:t}
Previous message:
> I have a DataGrid with a DateTime field that displays the date/time
a> s "6/14/2002 5:00:00 AM". I would like to display only the time in the
f> ollowing format "5:00 AM". I have read some information about the
B> oundColumn Properties DataFormatString, but the referance formating
s> pecifies nothing about dates/times only numbers values. Is it possiable
t> o do this.
> Thanks, Ron
|
|
 |