|
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.
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
Do you use a StaticColumn or a DateTimeColumn?
Thanks
|
|
Rank: Advanced Member Groups: Member
Joined: 11/12/2008 Posts: 42
|
you're right... tks..
i was using the wrong column type...
|
|
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
|
|
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érmino">
</eo:DateTimeColumn>
|
|
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
|
|
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.
|
|