Jump to content
The TIBCO Platform is a real-time, composable data platform that will bring together an evolving set of your TIBCO solutions - and it's available now! See more information here ×

How do you get yesterday date with format-dateTime function


Mark Leung

Recommended Posts

Hi,

To find yesterdays dateTime use the expression:

tib:add-to-dateTime(current-dateTime(), 0, 0, -1, 0, 0, 0)

and use that as the dateTime value in format Datetime.

In short, your expression should look similar to:

tib:format-dateTime('MMM dd YYYY - HH:mm:ss', tib:add-to-dateTime(current-dateTime(), 0, 0, -1, 0, 0, 0))

 

If you are only interested in the date part, use

tib:format-date('MMM dd YYYY', tib:add-to-date(current-date(), 0, 0, -1))

Regards,

Francisco

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...