I have an array of dates that I want to use on a xaxis of a plot. These dates I need to present as an abbreviated month/ abbreviated year way (For example: “Jan-18”, “Feb-18”, and so on). The problem shows up when I use Dates.format function. This converts my array of type Date to type string. So, what happens in my x axis plot is an alphabetically ordering, what is incorrect.
I think that if I could keep my array type, my x axis would order the dates in a correct way. How could I convert data format but keep the type? Is there a way to do that?