Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
using java script in report
soumyadeep
Hi
I am new in BIRT report development.
i have one java script that i have to use convert some string timestamp to a human readable date-time.
How i do that.
any link to any resource/tutorial also welcome.
Find more posts tagged with
Comments
JMaleski
Inside your text object, you can format the date object like this:
<value-of format="MM-dd-yyyy hh:mm a">new Date()</value-of>
Or you can simply reference a variable like this:
<value-of> VariableName </value-of>
If you do the second method, be sure that you are declaring your variable in the initialize event of the report so that it exists everywhere (like a global variable).