Welcome Guest Search | Active Topics | Sign In | Register

DateTime Column Data Format Options
laur
Posted: Friday, September 25, 2009 11:41:35 AM
Rank: Member
Groups: Member

Joined: 11/26/2007
Posts: 11
Hello,

I am binding a grid's column with a datetime field and I need only the hours and min from the datetime. How can I retrieve this in the Grid? I've tried using DateTime Columns's DataFormat property and set it to HH:mm without success.

Thank you for your help!
eo_support
Posted: Friday, September 25, 2009 12:06:10 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Hi,

I believe you can do that by setting DateTimeColumns.DatePicker.PickerFormat to HH:mm.

Thanks!
laur
Posted: Friday, September 25, 2009 1:06:47 PM
Rank: Member
Groups: Member

Joined: 11/26/2007
Posts: 11
laur wrote:
Hello,

I am binding a grid's column with a datetime field and I need only the hours and min from the datetime. How can I retrieve this in the Grid? I've tried using DateTime Columns's DataFormat property and set it to HH:mm without success.

Thank you for your help!


I guess the idea is to use {0:HH:mm} for the Static Column and HH:mm for the DatePicker. Thank you for the reply!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.