Using Base.Dates with format(dt::TimeType, format::AbstractString)

Base.Dates.format(DateTime(2017,2,28,12,45), "dd.mm.yy HH:MM")
"28.02.17 12:45"

works well, but this

using Base.Dates
format(DateTime(2017,2,28,12,45), "dd.mm.yy HH:MM")
UndefVarError: format not defined

works not. What is wrong with my using “using”?

It’s just that format is not exported. See http://docs.julialang.org/en/stable/manual/modules/

1 Like