Currently I'm trying to import dates from an CSV file. The dates (datetime) are formatted like this: 2009-09-06 11:30, which appears to be the format in, which Umbraco is storing the dates.
But I get this error: "Umbraco Exception (DataLayer): SQL helper exception in ExecuteNonQuery" - Not sure about what it says?
It is possible, only your timeformat is incorrect I think. What I do is a simple DateTime.Parse. I've modified your format to this 09-06-2009 11:30 and that worked fine.
Importing dates from CSV - Possible?
Hi Richard
Thanks for an übercool package! You rock!
Currently I'm trying to import dates from an CSV file. The dates (datetime) are formatted like this: 2009-09-06 11:30, which appears to be the format in, which Umbraco is storing the dates.
But I get this error: "Umbraco Exception (DataLayer): SQL helper exception in ExecuteNonQuery" - Not sure about what it says?
So I am wondering if it is at all possible? :)
/Jan
Hi Jan,
It is possible, only your timeformat is incorrect I think. What I do is a simple DateTime.Parse. I've modified your format to this 09-06-2009 11:30 and that worked fine.
Hope it helps you,
Richard
Hi Richard
I thought it was such a thing but could just not figure out what format it should be in - thanks a ton :)
/Jan
Check this small blogpost when you run into formatting issues.
Hope that helps,
Richard
is working on a reply...