Fortnightly Zoom settings -- Ist Level : Year;2nd level : Month;3rd level : Fortnight (1-15 , 16 to end of month)

I am looking for setting the zoom levels in my code for fortnight scale
Fortnightly Zoom settings – Ist Level : Year;2nd level : Month;3rd level : Fortnight (1-15 , 16 to end of month).Basically in 3rd level i am looking to have only 2 partition 1-15 of the month then 16 to end of the month.Also the 1-15 should align with start of month and 16-end of month should align to end of month and also if i export to MS Project/Excel it should be exported as is.

initZoom() {
gantt.ext.zoom.init({
levels: [

    {
      name: 'Months',
      scale_height: 60,
      min_column_width: 70,
      scales: [
        { unit: "month", step: 1, format: '%F' },
      ]
    },
    {
      name: 'Fortnight',
      scale_height: 60,
      min_column_width: 70,
      scales: [   
        // HERE I NEED MY CODE LOGIC
      ]
    },

}

Hello Nitin,
You need to implement a custom scale for that:
https://docs.dhtmlx.com/gantt/desktop__configuring_time_scale.html#customtimeunits

It shouldn’t be hard to implement that. You just need to reset the date to the start of the month:
https://docs.dhtmlx.com/gantt/api__gantt_date_other.html#:~:text=returns%20a%20Date%20object%20of%20the%20first%20day%20of%20the%20month%20for%20the%20specified%20date%20and%20clears%20the%20time%20part%20to%20zero

Then you need to add 15 days for the first cell of the month or 1 month for the second cell of the month:
https://docs.dhtmlx.com/gantt/api__gantt_date_other.html#:~:text=add%20(date%2C%20number%2C%20unit)%3A%20Date

Here is an example of how it can be implemented:

And this is an example with the zoom extension:
https://snippet.dhtmlx.com/b7bic7wc

Thanks a lot ramil…it worked