I'm trying to convert a row in an imported excel file into an array of DateTime allowing missing values.
using ExcelFiles, DataFrames
f_labs = "file.xlsx"
df = DataFrame(load(filename, "4!C1:X6"),header=false))
datetimearray = convert(Array{Union{Missings.Missing,DateTime}},df[2,:])
MethodError: Cannot `convert` an object of type DataValues.DataValue{Any} to an object of type DateTime
What's the correct way to do this?
I'm trying to convert a row in an imported excel file into an array of
DateTimeallowing missing values.What's the correct way to do this?