nfuentes Posted October 9, 2009 Share Posted October 9, 2009 Hi Guys I need to convert a milliseconds field to Date I'm trying to format using this instruction inside the IREPORT also use it inside the JRXML. SimpleDateFormat("dd/MM/yyyy").format($F{EMPLOYEE_EMPHIREDATE})but is not working. Help me on this Thanks. Link to comment Share on other sites More sharing options...
englbrechtful Posted October 12, 2009 Share Posted October 12, 2009 Does it have to be SimpleDateFormat? new java.sql.Timestamp($F{EMPLOYEE_EMPHIREDATE}) should work. Link to comment Share on other sites More sharing options...
mscheibe Posted October 12, 2009 Share Posted October 12, 2009 Define the field on your report as java.util.Date and put in your pattern. As value you can use "new java.util.Date($F{EMPLOYEE_EMPHIREDATE}.longValue())". Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now