Jump to content
We've recently updated our Privacy Statement, available here ×

Time Format in Jasper Report using Jaspersoft Studio


eeshachhabra

Recommended Posts

I am using Jaspersoft Studio 6.4.3 to create report. I want to show time in EST format as Wed, Nov 15, 2017 12:12 AM EST.  Below is what I have given as expression in the text field

new SimpleDateFormat("E, MMM dd, YYYY  HH:mm a z").format(new java.util.Date()) and am getting the output as Wed, Nov 15, 2017 12:12 AM GMT+05:30.

Pleae help to get the output in desired format i.e. Wed, Nov 15, 2017 12:12 AM EST.

Thanks in advance.

 

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Thanks for your response.

I tried text field expression new java.util.Date(). But still am getting Tue, Feb 06, 2018, 12:48 PM GMT+05:30. I want the date to be in format in EST i.e. like tis Tue, Feb 06, 2018, 12:48 PM EST.

I am using this format in pattern field E, MMM dd, YYYY HH:mm a z. 

How to convert this time to EST time?

Link to comment
Share on other sites

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...