Page 1 of 1

[INFO REQ] Date Format

Posted: Mon Nov 28, 2022 12:19 pm
by kamran812

Can we change the date format displaying in the screen shot in column and also on the top bar where dates are displaying.
we want the format like DD MMM (eg 02 Oct).


Re: [INFO REQ] Date Format

Posted: Mon Nov 28, 2022 12:22 pm
by mats

Re: [INFO REQ] Date Format

Posted: Mon Nov 28, 2022 12:42 pm
by tasnim

we want the format like DD MMM (eg 02 Oct).

And Here is how you can change the viewpreset header date format


gantt.viewPreset.headers[0].dateFormat = 'DD MMM';

Here is the result

res.png
res.png (16.24 KiB) Viewed 345 times

Re: [INFO REQ] Date Format

Posted: Mon Nov 28, 2022 1:37 pm
by kamran812

Hi Tasnim,
It is working fine for the header in viewPreset with your code but I can not get the column one think I'm missing something an error is coming when I'm setting the dataHelper format can you please help me with want to change the column dates format as well like we changed the header preset.


Re: [INFO REQ] Date Format

Posted: Mon Nov 28, 2022 1:48 pm
by marcio

Hey kamran812

You need to config your column like this

{ type : 'startdate', format : 'DD MMM' },

Re: [INFO REQ] Date Format

Posted: Mon Nov 28, 2022 2:11 pm
by kamran812

thank you so much, resolved