Schedule events to have dates as strings

HI,

Is there a way that Scheduler can accept Dates in the events as strings or it always has to be converted to a Date?

Lets say the ISO format with an offset: '2022-07-05T13:40:00+01:00'

Thanks


1 Reply

RM Ruksar Moosa Sait Syncfusion Team July 26, 2022 11:16 AM UTC

Hi Kotac,


Greetings from Syncfusion support.


You can directly set the date as string to the StartTime and EndTime fields values like the below. We have prepared a sample for your reference.

{

      "Id"1,

      "Subject""Story Time for Kids",

      "StartTime""2022-07-05T13:40:00+01:00",

      "EndTime""2022-07-05T16:00:00+01:00"

 }


Sample: https://stackblitz.com/edit/react-e7gutz-qkdkkp?file=index.js,datasource.json


Output:

Graphical user interface, application, table, waterfall chart

Description automatically generated


Kindly try the above sample and let us know if this meets your requirement.


Regards,

Ruksar Moosa Sait


Loader.
Up arrow icon