Question
Virtusa
AU
Last activity: 2 Jan 2019 10:59 EST
MSOGenerateExcelFile exports the excel with datetime fields as 20170921T180901.000 GMT
Hi All,
I'm using Pega 7.2.2 and I was using MSOGenerateExcelFile by creating a template and exporting the results of a report definition to excel sheet. The results are getting exported successfully but the fields with datetime gets exported as xxxxx GMT and not as 4/12/2018. Is there any better way of achieving this?
Cheers
***Moderator Edit-Vidyaranjan: Updated SR details***
Hi Satyakanth
Unfortunately, that is the expected behavior.
Please check out these links
https://community.pega.com/support/support-articles/formatting-export-excel-using-binary-excel-file
https://community.pega.com/support/support-articles/numeric-props-exported-excel-grid-repeat-text-format
https://community.pega.com/support/support-articles/excel-data-does-not-generate-results-defined-property-mode
I have personally not experimented with macros, but, as discussed in these links, you can also attempt to try to use excel macro.
https://community.pega.com/support/support-articles/export-excel-functionalityusing-msogenerateexcelfile-activity
https://collaborate.pega.com/question/showing-numeric-values-excel-which-exported-using-msogenerateexcelfile-activity