Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
dateTime versus date-time
mkulumadzi
In BIRT 2.2.2 and BIRT 2.5, data fields get the data-type "date-time", whereas parameters get the data-type "dateTime". As a result, Java script functions appear to work with data fields but not date parameters
A workaround I have come up with is to set the data-type of the parameter as 'string', prompt the user to enter the parameter as "yyyy/mm/dd" and then use a function to turn it into a date (eg, var sd = new Date(params["start_date"])). This creates a data field with the parameter value formatted as date-time. This is a bit clumsy though.
Does anyone have a better way to use functions on date-time parameters?
Find more posts tagged with
Comments
mwilliams
Hi mkulumadzi,
Can you give me an example of a function that you're trying to use on a parameter that's not working so I can have a spot to start testing? Thanks.