19
Views
2
Comments
[Advance Query] ExecuteSelectToExcel exports dates as numbers in de XLS file
advancequery
Web icon
Forge asset by oDevFagundes
Application Type
Traditional Web

When I use ExecuteSelectToExcel to create an Excel file, date field are exported in the XLS as a number.

Can this be changed somehow?

screen01.PNG
UserImage.jpg
Alexandre Yip

Hi Raymond Vermeer, 

For date fields convert to text prior export. 

Hope that it helps you 


2019-01-07 16-04-16
Siya
 
MVP

Looks like this is an open issue since long time and you can see a similar question in Review section of this component.  Behind the scene this component is using EPPlus https://github.com/JanKallman/EPPlus/ and this issue are discussed in many places and solutions are given.eg: https://stackoverflow.com/questions/34137533/detect-datatable-date-field-and-force-date-format-in-epplus-export. if your bandwidth permit please see if you could implement this patch.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.