cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
  • Sign-in to the JMP Community will be unavailable intermittently Dec. 6-7 due to a system update. Thank you for your understanding!
  • We’re retiring the File Exchange at the end of this year. The JMP Marketplace is now your destination for add-ins and extensions.
  • JMP 19 is here! Learn more about the new features.

Discussions

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

Selecting data for last year using date column

Hello,

 

I'm in the process of getting only previous year data(i.e., from Jan 2021 till Dec 2021) and am having trouble selecting the data I need.

I would like the script to select all dates from January 2021 to December 2021 and nothing else.

 

Thanks in advance.

1 REPLY 1
txnelson
Super User

Re: Selecting data for last year using date column

dt << select where(:date >= date mdy(01,01,2021) & :date <= datemdy(12,31,2021 ));

 

Jim

Recommended Articles