bittutqk Posted May 24, 2018 Share Posted May 24, 2018 Hello,I am getting when executing following mongo query { collectionName : 'transformed_col', findQuery : { 'app_code' : '$P!{p_application_name}', 'run_date' : (new SimpleDateFormat("yyyy-MM-dd").format(org.apache.commons.lang.time.DateUtils.addDays($P{p_report_date},-0))) + "T00:00:00" }}Hereapp_code is stringrun_date format is "2018-05-01T00:00:00"When adding single quote (') for rundate it excutes but does not return data.e.g.{ collectionName : 'transformed_col', findQuery : { 'app_code' : '$P!{p_application_name}', 'run_date' : '(new SimpleDateFormat("yyyy-MM-dd").format(org.apache.commons.lang.time.DateUtils.addDays($P{p_report_date},-0))) + "T00:00:00"' }} Thanks for the help in advance. 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