dan_14 Posted July 1, 2015 Share Posted July 1, 2015 Does anyone know how to use a function inside of the $X() method? I need to convert a date when including in my where clause: $X{BETWEEN, CONVERT_TZ(FROM_UNIXTIME(a.date / 1000),'UTC',TimeZone),StartDate,EndDate} Note - TimeZone, StartDate, and EndDate are all parameters. I even setup UTC as a string parameter but still getting an error. Link to comment Share on other sites More sharing options...
ernestoo Posted July 1, 2015 Share Posted July 1, 2015 You'll just have to manually write the SQL, something like:WHERE CONVERT_TZ(FROM_UNIXTIME(a.date / 1000),'UTC',TimeZone) BETWEEN $P{StartDate} AND $P{EndDate}[/code] 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