Jasper Reports expression help

TheDude05

Limp Gawd
Joined
Jan 27, 2005
Messages
393
I'm using iReports to create a report from my database. I have a field, $F{call_date}, which is a unix timestamp. I need to convert it to a human readable date string. I dont really know all the classes and functions to Java either as I've never really programmed anything with it yet. This page acts like you can use regular Java classes. I have tried to use the date class to no avail but they may have something to do with the fact I dont know java :p Any ideas?
 
I tried that except that I didnt have it in the xml sheet, I did it in iReports. I'll try it directly in the xml tomorrow at work. I forgot the error it spit at me when I tried that class.

I'm not sure if I have to import and if so, how. Like I said i'm inexpirienced in java. I know theres a way to set the classpath but I think that only refers to the sdk.
 
solved my problem. I didnt realize MySQL had a built in function for converting unix timestamps. Used that and never had to touch a bit of java :p
 
Back
Top