@sabkan
Aspose.Cells follows the specifications and rules of MS Excel. Date formatting cannot be implemented in the Header/Footer section. If you still have any questions, please manually set the date for the Header/Footer in Excel and format it. If you can complete this operation, please provide us with a sample file, and we will check it soon.
Additionally, as this date format is fixed. It is related to the region, and you can obtain different header/footer date formats by setting different regions. Please check the attachment. HeaderDate.zip (62.0 KB)
Do you convert to PDF or Excel (e.g., XLSX) format? Could you please provide the input Excel file, output file, and sample code that you are using? We will check it soon.
I dont convert to PDF. it is saved in xlsx format ,if input file is xlsx format.
Uploading the zip file containing the code snippet used,input excel file and output excel file.
This is the expected behavior. Please note that when you render to the Excel (e.g., XLSX) file format and open the output Excel file in MS Excel manually, it will override/use the region/locale of the system (OS) where you are opening the file, and you cannot change this behavior. For example, on a US locale/region, the Date header will be displayed in “MM/dd/yyyy” format in Excel. For other systems with different regions/locales, the Date header will be shown differently according to their locale settings.
When you render to PDF or an image, it will take into account the workbook.getSettings().setRegion(…); and you will get the header format irrespective of the region/locale settings of the OS where you are opening the PDF/image.