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

Help! String before the Date


alevi12
Go to solution Solved by ybablyuk,

Recommended Posts

In Jasper, I have a date looking like this ($P{Start_Datum}.getYear()+1900)>=1901

Now i need a String before the Date.

Now i make this   "Von" +$P{Start_Datum}

and the result shows like this  :   Von Tue Feb 25 00:00:00 CET

I need only for example: Von : 12.10.2002

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

  • Solution

Hello,

 

If you men use it in jasperreport you can use date pattern.

Look attched screen.

 

In report you can have label with text "Von :" and after this label you can put your field with correct date pattern.

 

Or you can use pattern like this "'Von : ' MM.dd.yyyy"

 

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