[FullCalendar 2] Date format issues

[FullCalendar 2] Date format issues

  
Forge Component
(13)
Published on 2016-03-23 by Grazina
13 votes
Published on 2016-03-23 by Grazina
It seems like the webpart is only accepting US datetime format.
When the outsystems environment is placed in e.g dd-mm-yyyy functions as CurrDate() fail to work.
Is there a preset available to alter this behaviour?

regards,

Dave
I have the same problem !
Hi Louis,

I've found a workarround:

Change the datatype for the defaultDate input parameter to text in the FullCalendar olm.
Afterwards just rebuild the date with the following expression in your solution.

Year(CurrDate())+"-"+Month(CurrDate())+"-"+Day(CurrDate())

This will display the calendar on 'today'

Dave Saman wrote:

Hi Louis,

I've found a workarround:

Change the datatype for the defaultDate input parameter to text in the FullCalendar olm.
Afterwards just rebuild the date with the following expression in your solution.

Year(CurrDate())+"-"+Month(CurrDate())+"-"+Day(CurrDate())

This will display the calendar on 'today'

Hi Dave,

It works well. Thank you

This workaround is necessary because FC uses Moment objects. Currdate returns US format date - which does not bode well with Moment.
Moment supports - 'yyyy-MM-dd' format with ease and works well across browsers.

Dave Saman wrote:

Hi Louis,

I've found a workarround:

Change the datatype for the defaultDate input parameter to text in the FullCalendar olm.
Afterwards just rebuild the date with the following expression in your solution.

Year(CurrDate())+"-"+Month(CurrDate())+"-"+Day(CurrDate())

This will display the calendar on 'today'


Thanks It worked for me.