jkeri Posted March 7, 2018 Share Posted March 7, 2018 I have this is my expression editor for a variable. It is a concatination of two fields, one is a date field. What I want to do is to have the date field appear as 'dd-MMM-yyyy' but becuase its concatenated, it comes across as yyyymmdd. "Reactive Field "+$F{REACTIVE_DATE}+" -- -"+$F{REACTIVE_NUMBER}is showing up as'Reactive Field 20161112 --- 5515 I want it to show as'Reactive Field 12-Nov-2016 --- 5515 I dont how to get the date into that format Link to comment Share on other sites More sharing options...
Duggu09 Posted March 7, 2018 Share Posted March 7, 2018 Hi Jkeri,Use the below sql statement in your jrxml query for REACTIVE_DATE field.To_Char(Reactive_date, 'YYYY-MM-DD') as ReactDate[Whatever name you like to give] and use this in your text field element. Link to comment Share on other sites More sharing options...
Massimo Rabbi Posted March 9, 2018 Share Posted March 9, 2018 Hi, you can use the DATEFORMAT function in the expression editor.For example something like this:DATEFORMAT(TODAY(), "dd-MMM-yyyy")[/code]produces the following output:09-Mar-2018[/code]Regards,Massimo. 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