Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsTrying to create a report variable that returns yesterday's date in yyyy-MM-dd format
https://www.eclipse.org/forums/index.php/mv/msg/262167/756986/#msg_756986
BirtDateTime.year(BirtDateTime.now()) + "-" + BirtDateTime.month((BirtDateTime.now()) + "-" BirtDateTime.day(BirtDateTime.now())
and it will return today's date in the required format, but I can't get it to pull yesterday (and it doesn't seem like the correct way to get this to work).
The reason I am looking for a variable is so that I can use it in a number of filters for the report that all require yesterdays date in that format.
thanks]]>Todd 2011-11-15T20:35:00-00:00Re: Trying to create a report variable that returns yesterday's date in yyyy-MM-dd format
https://www.eclipse.org/forums/index.php/mv/msg/262167/756989/#msg_756989
Formatter.format(BirtDateTime.addDay(BirtDateTime.today(),-1), "YYYY-MM-dd")