Posted 23 November 2019, 4:14 pm EST
I am trying to generate a pdf report using PdfDocument API refering the following link
https://www.grapecity.com/wijmo/demos/PDF/ExpenseReport/angular
I am using the following line of code to render the date
doc.drawText('From: ', 380, 0, { font: bold, continued: true }); doc.drawText(wijmo.changeType(minDate, wijmo.DataType.String, 'd'));
My Date value is : 2019-11-16T15:07:44.7086635-05:00 .
I want to format it as MM/dd/yyyy
I change the format to
doc.drawText('From: ', 380, 0, { font: bold, continued: true });
doc.drawText(wijmo.changeType(minDate, wijmo.DataType.Date, ‘MM/dd/yyyy’));
but it give me the value 2019-11-16T15:07:44.7086635-05:00
How do I format it to ‘MM/dd/yyyy’
Thanks