diesis Posted May 7, 2007 Share Posted May 7, 2007 I have a problem whe running a report using the Calendar input for a date parameter.The date parameter Data_Inizio (2007-05.01) is passed to mysql so that the query gets executed as: Code:SELECT...FROM...WHERE fd_Data BETWEENDATE('Tue May 01 00:00:00 CEST 2007')ANDDATE('Sun May 06 00:00:00 CEST 2007')... Naturally this won't work, because mysql need the date in format like yyyy-mm-dd. I've tried to convert the string to this format using: Code:[code]...WHERE fd_Data BETWEENDATE(STR_TO_DATE($P{Data_Inizio}, '%a %b %d %T CET %Y'))ANDDATE(STR_TO_DATE($P{Data_Fine}, '%a %b %d %T CET %Y')) The problem is that the string CET changes to CEST when Daylight saving changes, and for some monthes it works, and for some other not. Suggestions ? Link to comment Share on other sites More sharing options...
diesis Posted May 7, 2007 Author Share Posted May 7, 2007 No one has an idea ? I've searched, byt it seems there a no parameter for the input control. Link to comment Share on other sites More sharing options...
dogfuel Posted August 25, 2007 Share Posted August 25, 2007 Anyone have and answer to this? Thanks! 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