Hello Julia-Users,

I'm attempting to parse CSV document, converting a date-string field into a 
TmStruct before inserting into my database.  


So to test,  I'll set a as a date-string field from a row in the CSV file:
*julia>* a = data[23000][13]
"2014-06-20"

So far, so good.  I'll also set b to be the same date-string value as a, 
though I'll copy + paste the value in this instance:
*julia>* b = "2014-06-20"
"2014-06-20"

Just for the sake of my own, sanity:
*julia> *a == b
true

Convert b to TmStruct:
*julia> *strptime("%Y-%m-%d", b)
TmStruct(0,0,0,20,5,114,5,170,0,0,0,0,0,0)

Now a:
*julia>* strptime("%Y-%m-%d", a)
ERROR: no method strptime(ASCIIString,SubString{UTF8String})

It's been a long year;  time for another sanity-check:
*julia>* b == a
true

*julia>* a == b
true

Any help would be enormously appreciated!

Many Thanks,,
Tobias


Reply via email to