This seems to work for me:

*Dates.DateTime("Tue Oct 28 23:24:15.919 2014","e u d HH:MM:SS.sss y")*
I had to add a "d" to capture the day of the month, and lowercased E since 
you have abbreviated day of week.

Regards Ivar 

kl. 21:28:27 UTC+1 lørdag 1. november 2014 skrev Arshak Navruzyan følgende:
>
> Really basic question about dateformat.  I have a date that looks like 
> this:
>
> Tue Oct 28 23:24:15.919 2014
>
> Is this the right way to convert to an actual DateTime ?
>
> Dates.DateTime(df[:fulldate],Dates.DateFormat("[E u HH:MM:SS.sss y]"))
>
> Gives me this error currently:
>
> extra characters after whitespace in "28 23"
> while loading In[57], in expression starting on line 2
>
>  in error at error.jl:21
>  in parseint_nocheck at 
> /Applications/Julia-0.3.2.app/Contents/Resources/julia/lib/julia/sys.dylib 
> (repeats 2 times)
>  in Hour at /Users/arshakn/.julia/v0.3/Dates/src/dates/periods.jl:17
>  in getslot at /Users/arshakn/.julia/v0.3/Dates/src/dates/io.jl:108
>  in parse at /Users/arshakn/.julia/v0.3/Dates/src/dates/io.jl:120
>  in DateTime at /Users/arshakn/.julia/v0.3/Dates/src/dates/io.jl:172
>
>

Reply via email to