I have a timestamp textField called $ F {Fecha}, and I want to get the day, month and year from it. I created 3 variables var1, var2, var3 and in my expressions I set the following $ F {Fecha} .getDay (), $ F {Fecha} .getMonth (), $ F {Fecha} .getYear (); this gives me a value in return, but they are incorrect values, that is, if my date is 20120118, it returns me day = 3, month = 0, year = 112.
How can i fix this? Thanks in advance.
PD. I am using iReport 4.0.0
source share