Yesterday Date Macro

Hi, I have a macro for @yesterday - date:add(java.util.Date.new(), "-1d") that produces Wed Jun 15 15:30:47 AEST 2016

I would like to combine this with a "short" date formt.

Much stuffing around and no joy. Does someone have the appropriate expression?

Thanks,

Adrian

 

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Re: Yesterday Date Macro

Try either:

  • date:formatDate(date:add(java.util.Date.new(), "-1d"), "short")
  • date:format(date:add(java.util.Date.new(), "-1d"), "dd/MM/yyyy")

 

Re: Yesterday Date Macro

works like a charm! thanks, Adrian

Syndicate content