date format in schedule

I use timeline schedule.

I set the time interval is <60>, as a result the date show a period today and next day.
If I set below than <60>, it can return normal that only show today.

I want to ask I can set interval is <60> and only show today’s date ?


  x_step: 60,

Thanks for your help !

Hello,

Please provide your full timeline configuration.

Best regards,
Ilya

Ilya,

The full timeline configuration is shown the below :


   scheduler.createTimelineView({
                    name: "timeline",
                    x_unit: "minute",
                    x_date: "%H:%i",
                    x_step: 60,
                    x_size: 24,
                    x_start: 0,
                    x_length: 48,
                    y_unit: sections,
                    y_property: "section_id",
                    render: "bar"
                });

I use timeline schedule.

I set the time interval is <60>, as a result the date show a period today and next day.
If I set below than <60>, it can return normal that only show today.

I want to ask I can set interval is <60> and only show today’s date ?

Thanks for your help !

Best Regards !

Ivan

Hello,

Tried your code. Seemed to work correctly.

Where exactly do you see today and the next day?
Can you please also attach screenshot?

Kind regards,
Ilya

Ilya,

The attached file is schedule screen.

I have marked the schedule date and the time interval.

Thanks for your help !

Ivan


Place following code after you have created timeline view.

scheduler.templates.timeline_date = function(datea, dateb) { return scheduler.templates.day_date(datea); };
Best regards,
Ilya

Ilya,

I can get the results !

Thanks for your help !

Ivan