Skip to content

Best way to print the time a report needed for creation into the report on the header or footer #1742

Closed Answered by mabu999
mabu999 asked this question in Q&A
Discussion options

You must be logged in to vote

Now it works, with a little bit of enhanced javascript codeing i made a footnode, that shows me the runtime of the report:

<font face=courier id="startdate">start Report : <VALUE-OF format="yyyy-MM-dd HH:mm:ss">new Date()</VALUE-OF><font>
<div id="stopdate">&nbsp;div</div>
<div id="laufzeit">&nbsp;laufzeit</div>

<script type="text/javascript"> 

function padToTwoDigits(num) {
return num.toString().padStart(2, '0');
}

function formatDate(date) {
let year = date.getFullYear();
let month = padToTwoDigits(date.getMonth() + 1); // Monate sind nullbasiert
let day = padToTwoDigits(date.getDate());
let hours = padToTwoDigits(date.getHours());
let minutes = padToTwoDigits(date.getMinutes());
let…

Replies: 8 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@mabu999
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by mabu999
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants