I've a requirement to change the date format in iReport.
Currently I used an SQL query to collect the data.
Here's my query in iReport
SELECT DATE_FORMAT(CURRENT_DATE,'%d-%m-%Y') AS currentDate, Upper(e.name) AS name , e.address,
Upper(ea.comName) AS comName blablablabla.....
and currentDate field will show 28-12-2011
What the requirement is change the month (12) to "Disember" not "December". Or if the month is 1 so in the report should be "Januari".
The Month names are [Januari, Februari, Mac, April, Mei, Jun, Julai, Ogos, September, Oktober, November, Disember].
Can I do these condition in iReport?
Thanks in advance.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…