Viewing 7 posts - 1 through 7 (of 7 total)
Thanks Ninja and bledu for your suggestions!
August 6, 2007 at 9:33 am
I tried this
dr.appt_time = DirectCast(System.DBNull.Value, DateTime)
and got error: Invalid cast exception
What am I doing wrong here?
June 22, 2006 at 12:34 pm
I have the column defined as nullable. I tried the following:
dr.appt_time = System.DBNull.Value
and get intellisense msg -- Value of type System.DBNull cannot be converted to date.
dr.appt_time = System.DBNull...
June 21, 2006 at 11:44 am
Yep, that works fine. I can now save the time, but not without 1/1/1900 in front of it. Thanks for your help!
May 15, 2006 at 1:05 pm
Dim MyTime As DateTime
Before MyTime is populated it is #12:00:00 AM#
After the line of code:
MyTime = CDate(Now().ToShortTimeString)
it...
May 15, 2006 at 8:53 am
Yes, it is a datetime field, a dataset datarow.
Your code above works, however, the row is not being saved to the database.
I'm getting the following error: SQLDateTimeOverflow. Must be between 1/1/1753...
May 15, 2006 at 6:46 am
The following code isn't working, meaning no record is saved to the database:
dr.rec_checkin_time = Now().ToShortTimeString
This doesn't work either:
dr.rec_checkin_time = CType(Now().ToShortTimeString, DateTime)
And...
May 12, 2006 at 1:35 pm
Viewing 7 posts - 1 through 7 (of 7 total)