datatable export pdf

hi, i export my datatable to PDF with this code:

function EsportaPDF(){
		var cCliente="";
		webix.toPDF($$("datatable_lista_trattamenti"), {
			docHeader: { 
				text: "HEADER",
				textAlign:"center",
				fontSize:12,
				color:0x663399
			},
			table:{
				textAlign:"right"
			},
			filename: "standby" + "_" + cCliente,
			orientation:"landscape",
			autowidth:true,
			filterHTML:true,
			columns:{
				dtData:{ header:"Data", width:100,format:webix.Date.dateToStr("%d-%m-%Y")},
				sDescTrattamento:{ header:"Trattamento", width:300},
				sPagamentoPacchetto:{ header:"Pagamento/Pacchetto", width:150},
				sEsitoPagamento:{ header:"Esito", width:100},
	
			}
		});
	}

Why column dtData not formatting ??? i want day-month-year.

Hello,

Our webix.toPDF() method is based on the PDF.js. Date format can be applied with a template.

i have format the column “dtData”, on %d-%m-%Y", but when save PDF i have Y-m-d in the pdf document…