Kendo PDF Export

2 posts, 0 answers
  1. supriya
    supriya avatar
    1 posts
    Member since:
    Oct 2017

    Posted 16 Oct 2017 Link to this post


    I am using kendo to export div into pdf

    Below is the code

        var draw = kendo.drawing;

         .then(function (root) {
             return draw.exportPDF(root, {
                 pdf: {
                     date:new Date("MM/dd/yyy")
                 timezone: "Etc/UTC"
      .done(function (data) {
              dataURI: data,
              fileName: fileName,
              proxyURL: "api/Value/Post/",
              forceProxy: true

       Everything is working properly, however i want all the date control in "MM/dd/yyyy" format but it giving me date yyyy/mm/dd which is default input type date     format..






  2. Dimitar
    Dimitar avatar
    503 posts

    Posted 17 Oct 2017 Link to this post

    Hello Supriya,

    On the following Dojo example you can find a simple DatePicker implementation, where a similar scenario to the one described is demonstrated (formatting DatePicker value). With it, the DatePicker value is formatted as required ("MM/dd/yyy"). 

    You can try and use the DatPicker's format option as shown in the above Dojo to change the format for all DatePicker widgets in the export container. Then, the values should be properly exported in the correct format.

    Progress Telerik
    Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Back to Top