Hello can someone help me format a date in my very first report? I used this: BirtDateTime.today() and it gives me “Nov. 19, 2020 12:00 AM”. This is exactly what I want except I don’t want the “12:00 AM”. I don’t know JavaScript. Can you help? And I will also need a different date field where = today’s date + 1 month ( and just show the month/year i.e. December 2020)
Thanks @knimediger! I got today’s date to work without the time but I’m still confused about how to add one month to today’s date and only show i.e. Dec 2020. I have tried this and many other versions but I can’t seem to get it to work.
"Lifting Location Schedule for " + Formatter.format(BirtDateTime.addMonth(), “MMM-yyyy”)
BirtDateTime.addMonth() is a function and requires some parameters.
May I draw your attention to the documentation IBM Documentation ?
You will also get some help in the expression editor of BIRT. Drilling down BIRT functions → BirtDateTime → the right hand table will show available functions with required parameters.
You may try this expression which might bring a solution for your requirement