function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
iceberg4uiceberg4u 

Problem with exporting excel documents

I am trying to export documents in excel format.

<apex:page controller="ExportController" cache="true"
title="Export" contenttype="application/vnd.ms-excel#Data.xls">

 

If any value consists of hyphen for eg: 12-12-56 it is displayed as 12/12/56 in the excel file.

 

Is this a bug or an error from my side?

 

Thanks.