Hi to all!
I've created a file excel from Dynamics AX 2012.
In the file I have a date (DeliveryDate). I want to format the date depend on the language of the vendor, for which the excel is created.
At the moment I use the following code:
System.Globalization.DateTimeFormatInfo myDateTimeInfo = System.Globalization.DateTimeFormatInfo::get_CurrentInfo();
cells.range('M:O').numberFormat(myDateTimeInfo.get_ShortDatePattern());
But the result, in the excel file is: dd.07/yyyy
For info: the delivery date is 16.07.2015 and the language of the customer is German.
Any ideas?
Thanks
*This post is locked for comments
I have the same question (0)