I am trying to apply a style to cells that contain a date time value. The cells were populated by importing from a dataview. The built-in number format 22 is close to what I want, but doesn’t include the AM/PM part. So I am using a custom format string incorporating the tt part, but when I apply the style it does not convert the tt to the AM/PM designator, but passes it through as a literal value. Is this a bug? How do I represent the AM/PM designator in a custom format string?
Hi,
Thank you for your reply to my question. You provided exactly the answer I needed. I didn’t realize that Aspose.Cells adheres to the native Excel formatting tokens, and assumed instead that Cells used the .NET tokens. Anyway, my custom formatting is now working OK. I couldn’t find this anywhere in the Cells documentation on formatting - so I suggest you include it.
Hi,
Hi,
Actually I did see the documentation article about formatting that you referred. However, it was evident to me in that article that Aspose.Cells uses the identical strings as Excel uses. First it covered the Excel formatting dialog, and then it jumped to the list of built-in number formats. Maybe I missed something, but it would have helped to make that explicit in that article.
Thanks again
Hi,
Thanks for your posting and using Aspose.Cells.
Thanks for your valuable suggestion. We will try to make articles better in future as per your suggestions.