Jump to content
Changes to the Jaspersoft community edition download ×

Is there a way to export data to excel to be detected as excels format time hh:mm and [h]hh:mm


kolesar.mihal

Recommended Posts

Hello,

When exporting to excel, i need excel to detect cell type as format hh:mm and [h]hh:mm, it's basically a time interval., so I can perform excels SUM on selected fields and get result in format [h]hh:mm.

This is possible when doing manully in excel.

My input data is also of format hh:mm.cell  type detection is turned on.

tried sending it as string, ofc excel detects that as string.

tried parsing it using

SimpleDateFormat("HH:mm").parse("15:35")[/code]

 , excel detects that as date and time (something like "1/1/1970 15:35"), while I just need the time.

tried using net.sf.jasperreports.export.xls.pattern, that gives nice look of data, but nature of data in cell is still date and time.

So is there a way to export to excel and have excel cell data to be excels time hh:mm and /or [h]hh:mm format?

Thank you

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...