Hi,
I want to format date parameter to YYYY-MM-DD Can you help me to format date from date parameter (date1.sqlValue and date2.sqlValue)?
Here is my script:
jx:each(items="jdbc.query('select * from orders where to_char(due_date, 'yyyy-mm-dd') between ? And ?', date1.sqlValue,date2.sqlValue)" var="item" lastCell="B3")
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I want to format date parameter to YYYY-MM-DD Can you help me to format date from date parameter (date1.sqlValue and date2.sqlValue)?
Here is my script:
jx:each(items="jdbc.query('select * from orders where to_char(due_date, 'yyyy-mm-dd') between ? And ?', date1.sqlValue,date2.sqlValue)" var="item" lastCell="B3")
What database are you using?
I use postgresql
Here is:
1. due date = timestamp
2. date1 and date2 = Date
What version of ART are you using?
I use ART 5.16
What if you try
jx:each(items="jdbc.query('select * from orders where due_date between '+date1.sqlValue+' AND '+date2.sqlValue)" var="item" lastCell="B3")