Xticks in month format

Hi
I am working on a yearly planning model in hourly resolution, and I want to plot the result with the X-axis in months, not in hours. how can I do my plots in Gadfly?

You could try something like:

using Dates

plot(..., Guide.xticks(ticks=DateTime("2021-01-1"):Month(1):DateTime("2021-12-31"))

It may be easier to help if you show a small example of your time variable.

tim=length(TD)
df1=DataFrame(TD)

Plot1=Gadfly.plot(df1, x=1:tim, y=:x1, Geom.line,
Guide.xticks(ticks=DateTime(“2021-01-1”):Month(1):DateTime(“2021-12-31”)),Theme(default_color=“green”),
Guide.xlabel(“Months”), Guide.ylabel(“Power(MW)”),
Guide.Title(“Total Demand”))
TD

I have tried it but I got the error message below.
MethodError: no method matching isless(::DateTime, ::Int64)
Closest candidates are:
isless(!Matched::Missing, ::Any) at missing.jl:87
isless(!Matched::PyCall.PyObject, ::Any)