S
Scirious
People, I'm working in a project in Asp.Net 1.1 where I need to record
some info in an Oracle database. To do such, there is an object that
stores some this info, including a date in a string variable.
Something that is gotten this way.
DateTime dt = new DateTime.Today;
string date = dt.ToString("dd/MM/aaaa");
After getting the date this way it goes through many objects in it's way
to be recordend, but then I get the following error stack:
--------------------
(String was not recognized as a valid DateTime.) at
System.DateTimeParse.GetDayOfNNY(DateTimeResult result,
DateTimeRawInfo raw, DateTimeFormatInfo dtfi) at
System.DateTimeParse.ProcessTerminaltState(Int32 dps,
DateTimeResult result, DateTimeRawInfo raw,
DateTimeFormatInfo dtfi) 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.DateTime.Parse(String s) at
codeplan.BusinessRules.BusProposta.inserir(Proposta prop) at
codeplan.Web.PrstIncluir.OnSubmit(Char command)
--------------------
Any one have any ideas of what can be causing this? I can't post the
whole code here because it is a commercial product but even generic
answers would be appreciated.
TIA,
Scirious.
some info in an Oracle database. To do such, there is an object that
stores some this info, including a date in a string variable.
Something that is gotten this way.
DateTime dt = new DateTime.Today;
string date = dt.ToString("dd/MM/aaaa");
After getting the date this way it goes through many objects in it's way
to be recordend, but then I get the following error stack:
--------------------
(String was not recognized as a valid DateTime.) at
System.DateTimeParse.GetDayOfNNY(DateTimeResult result,
DateTimeRawInfo raw, DateTimeFormatInfo dtfi) at
System.DateTimeParse.ProcessTerminaltState(Int32 dps,
DateTimeResult result, DateTimeRawInfo raw,
DateTimeFormatInfo dtfi) 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.DateTime.Parse(String s) at
codeplan.BusinessRules.BusProposta.inserir(Proposta prop) at
codeplan.Web.PrstIncluir.OnSubmit(Char command)
--------------------
Any one have any ideas of what can be causing this? I can't post the
whole code here because it is a commercial product but even generic
answers would be appreciated.
TIA,
Scirious.