TODAY TM1 Function: Syntax and How to Use

TODAY simply returns the current system date as a string in the form ‘yy-mm-dd’, or if you want, in the format ‘yyyy-mm-dd’.

Syntax of TODAY

The syntax is:

Today ( FourDigitYearFlag); 

where:

  • FourDigitYearFlag – can be either omitted or 0 or 1, where omitted or 0 will return the 2 digit year and a 1 will return a 4 digit year.

Example of TODAY

Assuming the current system date is 07 June 2025, then:

Today(1);

will return the string ‘2025-06-07’

While

Today();

will return the string ’25-06-07′.

The NOW Function

If you’re looking to understand the NOW function, where you can get a numeric serial number for the current date, please see this post.

Notes

The Today function is valid in both TM1 rules and TurboIntegrator processes.

Need Help with TM1 Date Functions

If you would like some help understanding the date functions in TM1, please get in touch. We do this all day, every day, so will be only too pleased to assist.

  • This field is for validation purposes and should be left unchanged.

Leave a Reply

Your email address will not be published. Required fields are marked *

Log In