Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Report Date and Timestamp Converstion(Report Date and Timestamp Converstion)
Report Date and Timestamp Converstion [message #1059077] Thu, 16 May 2013 10:43 Go to next message
nat rajan is currently offline nat rajan
Messages: 1
Registered: May 2013
Junior Member
I have an requirement where i have to display the local(desktop) time stamp in the BIRT report. But the report deployed it in the Unix server tomcat, so BIRT uses server side scripting and always displaying the server time.


Someone please help me on this conversion.
Re: Report Date and Timestamp Converstion [message #1059134 is a reply to message #1059077] Thu, 16 May 2013 19:59 Go to previous message
Michael Williams is currently offline Michael Williams
Messages: 828
Registered: July 2009
Senior Member

Try something like this in a HTML text box in your masterpage header or footer:

<script>
temp = new Date();
document.getElementById("localDateTime").innerHTML = temp;
</script>

<div id="localDateTime"/>


Regards,

Michael Williams
BIRT Exchange
Michael's BIRT Blog
Previous Topic:Rhino version
Next Topic:impossible to extract the incorporated font
Goto Forum:
  


Current Time: Tue May 28 22:38:05 EDT 2013

Powered by FUDForum. Page generated in 0.02105 seconds