cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • JMP Security Notice: CVE-2026-109618 and CVE-2026-109619

    JMP promptly initiated a review of its products, services, and relevant infrastructure for exposure to CVE-2026-109618 and CVE-2026-109619.

    Our assessment of JMP products has not identified exposure to these vulnerabilities. Where remediation was required within supporting environments, appropriate security updates and controls have been applied and validated.

    We have identified no evidence of successful exploitation or unauthorized access to JMP systems or customer information associated with these vulnerabilities.

    JMP continues to monitor the issue and relevant vendor guidance. No action is required by JMP customers at this time.

  • Don’t miss your chance to experience Discovery Summit Europe at our best available rate! Early bird registration through 31 Oct.
  • Graph Builder Toolbar streamlines interactive graphing. Creates shortcuts on Report and GraphBuilder Helpers toolbars. Download and install the extension.

Discussions

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

auto fill today's date into data table name

I need to save as data table to xlsx AND auto adding today's date. For example, file name will be "old name 3/8/2022.xlsx" if I run the script on 3/8/2022, and  "old name 3/9/2022.xlsx" if I run the script on 3/9/2022. This is easy to do in SAS, and I assume JMP will be similar. Not sure how to fix the code. thanks

 

Data Table( "old name" ) << Save( "C:\old name || Today().xlsx" );

1 ACCEPTED SOLUTION

Accepted Solutions
Jeff_Perkinson
Community Manager Community Manager

Re: auto fill today's date into data table name

You need to Format the date:

 

Format( Today(), "ddMonYYYY" );

 

Two things to note:

  1. You don't need Char() since Format() returns a character string.
  2. Avoid the formats that contain slashes (/) since they are used as directory delimiters.  
-Jeff

View solution in original post

4 REPLIES 4
ron_horne
Super User (Alumni)

Re: auto fill today's date into data table name

Hi @Isabel26 

perhaps this will work:

Data Table( "old name" ) << Save( "C:\old name "|| char (Today())||".xlsx" );

 

Isabel26
Level III

Re: auto fill today's date into data table name

Thanks! But the date is not format in MM/DD/YYYY. It returns 3729589915. 

Jeff_Perkinson
Community Manager Community Manager

Re: auto fill today's date into data table name

You need to Format the date:

 

Format( Today(), "ddMonYYYY" );

 

Two things to note:

  1. You don't need Char() since Format() returns a character string.
  2. Avoid the formats that contain slashes (/) since they are used as directory delimiters.  
-Jeff
Isabel26
Level III

Re: auto fill today's date into data table name

Thank you! It worked perfectly.

Recommended Articles