Have a function that return the name of the month of given date.
johansigfrids opened this issue · comments
Johan Sigfrids commented
Would it be possible to have a function that return the name of the month of a given date as a string? Example:
monthname(date(1985,6,21)) ==> "June"
A possible addition would be to be able to tell the function to return a three letter truncated version of the name.
Jacob Quinn commented
Thanks for the suggestion. These have been added in the rewrite I've been working on that's going into Base julia. See JuliaLang/julia#5328 for details. I've added monthname
, monthabr
, dayname
, dayabr
, to get the month or day name of a Date/Datetime.
Jacob Quinn commented
Fixed by ed8123e