Welcome Guest Search | Active Topics | Sign In | Register

Datepicker with time Options
Paul Creedy
Posted: Friday, August 3, 2007 6:16:36 AM
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
eo_support
Posted: Friday, August 3, 2007 6:24:54 AM
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.
Paul Creedy
Posted: Friday, August 3, 2007 6:29:35 AM
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?
eo_support
Posted: Friday, August 3, 2007 6:39:22 AM
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.
Paul Creedy
Posted: Friday, August 3, 2007 6:42:24 AM
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!
eo_support
Posted: Friday, August 3, 2007 6:45:42 AM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,194
Yes. We are aware of that.
Paul Creedy
Posted: Friday, August 3, 2007 6:50:05 AM
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 Silenced
eo_support
Posted: Friday, August 3, 2007 11:45:50 AM
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


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.