Hello,
I am getting the following stack of errors while retrieving the details of a record.
"System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.DateTime.Parse(String s, IFormatProvider provider, DateTimeStyles styles)
at System.DateTime.Parse(String s, IFormatProvider provider)
at System.Convert.ToDateTime(String value, IFormatProvider provider)
at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
at System.Convert.ToDateTime(Object value)
at System.Data.Common.DateTimeStorage.Set(Int32 record, Object value)
at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <17 Mar 2005 11:37:40:910> in LastUpdatedDateTime Column. Expected type is DateTime."
LastUpdatesDateTime is of type String. When the form loads it simply assigns the value to the text box as follows and this is where it fails. LastUpdatedDateTime does have value in it which is 17 Mar 2005 11:37:40:910.
txtLastUpdatedDateTime.Text = .Item("LastUpdatedDateTime").ToString
Can anyone help please !!!!!!!!
Thanks and regards.
I am getting the following stack of errors while retrieving the details of a record.
"System.FormatException: String was not recognized as a valid DateTime.
at System.DateTimeParse.Parse(String s, DateTimeFormatInfo dtfi, DateTimeStyles styles)
at System.DateTime.Parse(String s, IFormatProvider provider, DateTimeStyles styles)
at System.DateTime.Parse(String s, IFormatProvider provider)
at System.Convert.ToDateTime(String value, IFormatProvider provider)
at System.String.System.IConvertible.ToDateTime(IFormatProvider provider)
at System.Convert.ToDateTime(Object value)
at System.Data.Common.DateTimeStorage.Set(Int32 record, Object value)
at System.Data.DataColumn.set_Item(Int32 record, Object value)Couldn't store <17 Mar 2005 11:37:40:910> in LastUpdatedDateTime Column. Expected type is DateTime."
LastUpdatesDateTime is of type String. When the form loads it simply assigns the value to the text box as follows and this is where it fails. LastUpdatedDateTime does have value in it which is 17 Mar 2005 11:37:40:910.
txtLastUpdatedDateTime.Text = .Item("LastUpdatedDateTime").ToString
Can anyone help please !!!!!!!!
Thanks and regards.