Welcome Guest Search | Active Topics | Sign In | Register

EO.Grid Date Time Field Options
Christiano
Posted: Thursday, January 29, 2009 1:23:15 PM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
I'm populating a date time column from sql...

but this column dispalays only date, no time...

when i set datatype to datetime, as soon as i leave the UI it turns back to auto.

if i set date format to {0:d}, it idisplays only the day...


tks.
eo_support
Posted: Thursday, January 29, 2009 2:49:35 PM
Rank: Administration
Groups: Administration

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

Do you use a StaticColumn or a DateTimeColumn?

Thanks
Christiano
Posted: Friday, January 30, 2009 7:52:34 AM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
you're right... tks..

i was using the wrong column type...
UweD
Posted: Friday, March 6, 2009 4:32:03 AM
Rank: Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 37
What have you done? I have the same problem but I can take a DateTimeColumn or a StaticColumn it is the same! Only the date part is shown not the time part. I set DataType="DateTime" no change! But I can't set DataFormat because our solution works in different languages.

Uwe
Christiano
Posted: Friday, March 6, 2009 6:56:56 AM
Rank: Advanced Member
Groups: Member

Joined: 11/12/2008
Posts: 42
Created a DateTimeColumn,
Set the DataFormat to "{0:dd/MM/yyyy HH:mm}
Left the DateTYpe as Auto
Retrieved a Datetime field from the SQL (not THAT important, i think...)


Code: HTML/ASPX
<eo:DateTimeColumn DataField="ViagDHFP" DataFormat="{0:dd/MM/yyyy HH:mm}" HeaderText="Prev. T&#233;rmino">
 
</eo:DateTimeColumn>
UweD
Posted: Friday, March 6, 2009 8:55:43 AM
Rank: Advanced Member
Groups: Member

Joined: 8/11/2008
Posts: 37
Thanks,
but it remains the problem that the date has a diffent format in different languages
eo_support
Posted: Friday, March 6, 2009 9:00:51 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
You will need to code to set the format according to your language. The Grid/DatePicker won't do that for you.


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.