FullCalendar2 - Not starting in current month

FullCalendar2 - Not starting in current month

  

Hi everyone!


I Want to use Full Calendar 2 and everything is fine but, when the webpage opens tha calendar appears in month "may".

I know that if I click in "Today" button it goes to where I want, but I need it to start already in the today month.


Can someone help me please?


Thank you!


Best regards,


Ricardo

Ricardo Pereira wrote:

Hi everyone!


I Want to use Full Calendar 2 and everything is fine but, when the webpage opens tha calendar appears in month "may".

I know that if I click in "Today" button it goes to where I want, but I need it to start already in the today month.


Can someone help me please?


Thank you!


Best regards,


Ricardo

Hello Ricardo Pereira,

Have you tried to set initialDate?

Best Regards,

João Cabaço.

Solution

Hi,

It might be an issue of the dateformat.

I think it uses your 'day' as month :p MM/DD/YYYY format.
Try to change the date format accordingly.

Have you configured CurrDate() somewhere as initial date? If so, format it to the format FullCalendar requires.
Or you can dig into the code and change the format it uses :)

Had this issue in the past too.

Greetings,
Niels F.



Solution

Hi,


Thank's everyone! That's solved!

The problem was the date format (Full Calendar 2 uses american format and I'm using european).


Best Regards,

Ricardo