Hello,
I’m using Aspose reporting engine, and I would like to defined a string variable from a datetime and apply it a specific date format (for example "dd/MM/yyyy"
).
This variable is not used to be displayed directly in the report, in this case I will use << [my_datetime]:dd/MM/yyyy">>
. I just need it in my tempate for some process.
I tried folowing syntax, but it doesn’t work, it return an empty string:
<<var [string string_datetime_tostring = my_datetime.ToString("dd/MM/yyyy")]>>
Is it a way to do this kind of convertion in my var tag?
Thank for your help