Free Support Forum - aspose.com

Does datetime have function that returns current time zone?

Hi,

Does any function in Aspose.excel return current time zone?

thank you

Excel file doesn't save time zone. It depends on your locale settings. To get current time zone, please use following code:

TimeZone localZone = TimeZone.CurrentTimeZone;