Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to convert timestamp to date in jasper report ireport designer 4.5.0

I need to convert or format my timestamp to date in the report I am generating using Jasper Reports iReport designer 4.5.0

I am get the stardate as 2012-04-01 12:00 AM and I want to convert or format it to dd/mm/YYYY.

How can I achieve this?

like image 976
Yogendra Singh Avatar asked Feb 28 '12 06:02

Yogendra Singh


1 Answers

In the iReport designer, you can set the pattern of fields or variables. Select the field and you shall see the properties panel on the right side. Then find the Pattern property and set it according to your need.

like image 158
Lichuang Avatar answered Sep 18 '22 13:09

Lichuang