I am creating an excel with Aspose. I would like that the date will be formatted according to the OS's Locale, meaning that if the excel will be open in US or Europe the dates will appear in a different format, like if you select the format with asterisk in excel: printscreen of "Format Cells" screen in Excel
This is my code:
style.setCustom(????);
cell.setStyle(style);
String date ="2/23/2015";
DateTime myDate = new DateTime(new Date(date));
cell.setValue(myDate);
How shall I set the cell style?
thanks :)