|
Rank: Advanced Member Groups: Member
Joined: 6/5/2007 Posts: 76
|
I have a datetime field in a database.
I put a datapicker control in a gridview formated with dd/MM/yyyy HH:mm
The control is bound with: SelectedDateString='<%# Bind("publish_date") %>'
The control contains the correct date, but the time is set at 00:00 If I alter the date and time, only the date is saved to the database, not the time.
Note, that I'm using SelectedDateString because I need UK format.
It doesn't seem to recognise the time part of the date
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. It does ignore the time. We will add it and get you an update.
|
|
Rank: Advanced Member Groups: Member
Joined: 6/5/2007 Posts: 76
|
Cheers. After the fix will I be able to use SelectedDateString with null database dates?
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
I think you can use DbNull with SelectedDateString now. You just can not use it with SelectedDate because the two types are not compatible.
|
|
Rank: Advanced Member Groups: Member
Joined: 6/5/2007 Posts: 76
|
Yes I can use it with selectedatestring but that does not support date/time. Only dates.
I need to be able to read/write to a db with a date/time taking into account that the original date/time being read in may be a null.
Until I get your fix I'm in a catch 22 and stuck!
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Yes. We are aware of that.
|
|
Rank: Advanced Member Groups: Member
Joined: 6/5/2007 Posts: 76
|
Great. I'll shut up now then so that you can go back to doing the fix instead of answering my forum posts
|
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi Paul,
We've posted a new build that addressed this issue. Please see your private messages for the download location.
Thanks
|
|