cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP will suspend normal business operations for our Winter Holiday beginning on Wednesday, Dec. 24, 2025, at 5:00 p.m. ET (2:00 p.m. ET for JMP Accounts Receivable).
    Regular business hours will resume at 9:00 a.m. EST on Friday, Jan. 2, 2026.
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.

Discussions

Solve problems, and share tips and tricks with other JMP users.
Choose Language Hide Translation Bar
StefanC
Level III

How do I add a time stamp when printing a data table?

I want to add a time stamp to a print of my data table. I know how to add the date with the &d; option in Page Setup. Is there a way to also add the time?

1 ACCEPTED SOLUTION

Accepted Solutions
Craige_Hales
Super User

Re: How do I add a time stamp when printing a data table?

I don't see how to get the time in the print header either. You could get it on the first page like this

dt = currentdatatable();
textbox(format(today(),"Locale Date Time h:m:s", 23, 0))<<journal;
dt<<journal;

currentjournal()<<savepdf("$temp/test.pdf");
currentjournal()<<closewindow;

open("$temp/test.pdf")

Good wish list item.

 

edit: you'll want to deselect any selected columns and rows if you want everything printed, and you'll want to start with an empty journal.

Craige

View solution in original post

1 REPLY 1
Craige_Hales
Super User

Re: How do I add a time stamp when printing a data table?

I don't see how to get the time in the print header either. You could get it on the first page like this

dt = currentdatatable();
textbox(format(today(),"Locale Date Time h:m:s", 23, 0))<<journal;
dt<<journal;

currentjournal()<<savepdf("$temp/test.pdf");
currentjournal()<<closewindow;

open("$temp/test.pdf")

Good wish list item.

 

edit: you'll want to deselect any selected columns and rows if you want everything printed, and you'll want to start with an empty journal.

Craige

Recommended Articles