I am coding an excel-dna add-in in C#. The user enter some parameters and the excelFunction return an array of result by calling
The fact is that some cells are dates and from now, I format them by returning a string. In excel, the type is "general". The users need these cells to be in "date" format. I tried to return directly the DateTime but I got only a number.
I tried to find a solution (even a workaround) but don't find anyone.
Do you have any idea to help me?